๐Ÿ”ธview size

SwiftUI โŸฉ view โŸฉ layout โŸฉ size

SwiftUI has built-in views that manage size in different ways:

  • Expanding to fill the available space (offered by their parent): (Color, LinearGradient, Circle ...)

  • Resizing to fit their content: (have an ideal size that varies according to their contents) (Text, container views ...)

  • Maintaining a specific size that doesn't change: (have an ideal size that never varies) (Toggle, DatePicker...)

Last updated