mirror of
https://github.com/cranci1/Sora.git
synced 2026-01-11 20:10:24 +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))
|
||||
.foregroundColor(.secondary)
|
||||
.lineLimit(showFullSynopsis ? nil : 3)
|
||||
|
||||
.animation(nil, value: showFullSynopsis)
|
||||
|
||||
Text(showFullSynopsis ? "LESS" : "MORE")
|
||||
.font(.system(size: 16, weight: .bold))
|
||||
.foregroundColor(.accentColor)
|
||||
.animation(.easeInOut(duration: 0.3), value: showFullSynopsis)
|
||||
}
|
||||
.onTapGesture {
|
||||
withAnimation(.easeInOut(duration: 0.3)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue