What is happening now with constraints in SwiftUI
? Do View
types adapt automatically for bigger devices etc. or what should we have to do
It still has constraint, in WWDC examples we saw HStack
and VStack
, which seems like UIStackView
, so my guess it just clips to edges. You can still add padding to views so if you want constraint a UILabel
(Text) 10pt to left you do something like this:
Text("Hello World").padding(EdgeInsets(top: 0, leading: 10, bottom: 0, trailing: 0))