https://www.hackingwithswift.com/quick-start/swiftui/how-to-provide-relative-sizes-using-geometryreader GeometryReader to the Rescue What the Parent Wants When coding your custom view, you often do not need to worry about surroundings or sizing. For example,… Read more “GeometryReader”
Category: SwiftUI
SwiftUI Concepts
What is @state? SwiftUI manages the storage of any property you declare as a state. When the state value changes, the view invalidates its appearance and recomputes… Read more “SwiftUI Concepts”
What is @EnvironmentObject in SwiftUI?
A dynamic view property that uses a bindable object supplied by an ancestor view to invalidate the current view whenever the bindable object changes.In practice the main… Read more “What is @EnvironmentObject in SwiftUI?”
SwiftUI Design Concepts
Views: VStack : arrange views vertically HStack : arrange views horizontally ZStack : arrange views one on another Color.purple : will create view of purple color SF… Read more “SwiftUI Design Concepts”