Post

Replies

Boosts

Views

Activity

Reply to How can I change the visibility of ornament with animation?
I've managed to animate in the visibility using opacity: .ornament(visibility: .visible, attachmentAnchor: .scene(alignment: .bottom)) { OrnamentView() .opacity(showingOrnament ? 1.0 : 0.0) .animation(.spring(duration:2), value: showingOrnament) } I haven't yet figured out a way to cause the window move/close handle to re-distance itself from the associated window once the ornament is hidden, but there may be a way to made the ornament hidden after the opacity animation is completed.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’23