Quantcast
Channel: A single component's animation is messing up the whole view — SwiftUI - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by Christopher Davis for A single component's animation is messing up...

The answer from E.Coms above was very helpful! But instead of replacing the width (325) of all my UI elements, I appended .frame(width: UIScreen.main.bounds.size.width) to the top-level wrapper. It...

View Article



Answer by E.Coms for A single component's animation is messing up the whole...

You need to remove the animation(nil) in the AvatarComponentYou also need to change all .frame(width: 352) to .frame(width: UIScreen.main.bounds.size.width)

View Article

Image may be NSFW.
Clik here to view.

A single component's animation is messing up the whole view — SwiftUI

I'm building a SwiftUI app for my wife. Her avatar pulses with a repeating animation. It looks cool and seems to work just fine on its own. This is a component that lives in its own SwiftUI file. When...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images