mirror of
https://github.com/cranci1/Sora.git
synced 2026-04-21 08:32:00 +00:00
test animation
This commit is contained in:
parent
d0ac33afb9
commit
0962fd15d1
1 changed files with 3 additions and 1 deletions
|
|
@ -318,10 +318,12 @@ struct MediaInfoView: View {
|
||||||
.font(.system(size: 16))
|
.font(.system(size: 16))
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
.lineLimit(showFullSynopsis ? nil : 3)
|
.lineLimit(showFullSynopsis ? nil : 3)
|
||||||
|
.animation(nil, value: showFullSynopsis)
|
||||||
|
|
||||||
Text(showFullSynopsis ? "LESS" : "MORE")
|
Text(showFullSynopsis ? "LESS" : "MORE")
|
||||||
.font(.system(size: 16, weight: .bold))
|
.font(.system(size: 16, weight: .bold))
|
||||||
.foregroundColor(.accentColor)
|
.foregroundColor(.accentColor)
|
||||||
|
.animation(.easeInOut(duration: 0.3), value: showFullSynopsis)
|
||||||
}
|
}
|
||||||
.onTapGesture {
|
.onTapGesture {
|
||||||
withAnimation(.easeInOut(duration: 0.3)) {
|
withAnimation(.easeInOut(duration: 0.3)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue