Relative Content

Tag Archive for macosswiftui

How can I direct a SwiftUI parent view to have its embedded child view persist its values independently?

I have a View that is composed with a child view that is vended from a user selected object, presented as a sheet in a containing view. The Title/Address/Port in the screen shot below is from a single view and then the parent view has the Ok/Cancel buttons (The reasons for them to be separate is that I will need to reuse the vended settings views in another context which will have other settings and will have its own buttons)

I found a bug in SwiftUI while making a macOS app

when i use height*some number
enter image description here
when i use height-some number
enter image description here
I’m a beginner and I’m feeling confused. Please some one help me! Thanks!