Swift UI note
SwiftUI uses Declarative Syntax. Swift uses Imperative Syntax. Declarative Syntax lets you specify what you want to be created and the system decides how to do it. Imperative Syntax forces you to describe exactly how you want an interface item to be created. Zstack, Vstack, Zstack ZStack { Color . accentColor . ignoresSafeArea () HStack ( spacing : 20 ){ Text ( "Demo" ). scaledToFit (). frame ( width : 100 , height : 100 , alignment : . center ). border (. red ) VStack ( alignment : . trailing , spacing : 30 ){ Text ( "Tomato Tortellini, Bottarga and Carbonara " ). font (. title3 ) ...