SwiftUI Tip💡 Easily position views in their parent’s coordinate space with the position() modifier. → learnandcodewithenid.com
2
11
94
7K
64
Download Image
@ios_dev_alb I’d forgotten that was possible (or didn’t realise it was). Haven’t looked at SwiftUI in over a year & a bit. Isn’t there also a way now of saying if there is space use this version of the view otherwise use a different version?
@ios_dev_alb I’ve never used this. Always offset. Why use one over the other?