Categories
SwiftUI

Understand Stack Views in SwiftUI

There are three built-in stacking views in SwiftUI; VStack, HStack, and ZStack. All three stacks are of type View. Stacks have alignment and content parameters. VStack & HStack also have a spacing parameter. In SwiftUI, the last parameters can be omitted, the default alignment in the center and the spacing is dynamic when it is […]

Categories
SwiftUI

Introduction To SwiftUI

Functional Programming SwiftUI is a functional programming language that uses the View protocol to create reusable UI components. Views are value types, which means you don’t define classes for them. Struck is read only, you can’t inherit from them. Views are rectangular areas on screens that are used for drawing and multi touches. Create SwiftUI […]