Learn Swift Winnipeg (@LearnSwiftWpg) header
Learn Swift Winnipeg (@LearnSwiftWpg) profile picture

A group of iOS Developers in Winnipeg, Manitoba, Canada who meet regularly to learn Apple's open source programming language, Swift! Sponsored by @RRC

Winnipeg, Manitoba
Joined July 2017
Photo by Learn Swift Winnipeg (@LearnSwiftWpg)
Learn Swift Winnipeg retweeted
...which is almost always what you want, as it prevents subviews that happen to be scrolling outside the safe area from being affected.)
2
2
2
Learn Swift Winnipeg retweeted
(If you haven’t played with this yet, scroll views “absorb” safeAreaInsets on edges they incorporate it into their adjustedContentInset...
1
3
8
Learn Swift Winnipeg retweeted
Instead, use additionalSafeAreaInsets to increase safeAreaInsets. Or set a negative contentInset to reduce/negate the adjustedContentInset.
3
5
26
Learn Swift Winnipeg retweeted
iOS 11 tip: Avoid contentInsetAdjustmentBehavior = .never on UIScrollView, which results in safeAreaInsets always propagating to subviews.
6
23
6
117