SwiftUI Practice repo, following Apple's Tutorials (https://developer.apple.com/tutorials/swiftui/creating-and-combining-views).
UIView
can now be "converted" toSwiftUI View
by conforming toUIViewRepresentable
protocol.- SwiftUI
View.offset(y: 100)
is an equivalent toUIScrollView.contentOffset.y = 100
. - SwiftUI
View.edgesIgnoringSafeArea(.top)
is an equivalent to
UIScrollView.contentInset.top = -statusBarHeight
or
UIViewController.additionalSafeAreaInsets.top = -statusBarHeight
or
UIScrollview.contentInsetAdjustmentBehavior = .never
. Spacer()
max out the gap inbetween Views.- Lots of syntactic sugar, sweet!
-tbc