The Amazing Race; Performance of Standard iOS Elements & Tech
summary
Benchmarks run on iPhone X iOS 11 show concrete tradeoffs: text rendering ranges from UITextView 27 ms down to core text as the fastest with UILabel 4.39 ms and textLayer/textKit in between; rounded corners drawn with Core Graphics ~2.4 ms beat some layer masks, but shouldRasterize increases cost; shadow via image is slowest while layer+shadowPath is faster; Auto Layout (14 ms) and UIStackView (12 ms) are much slower than manual layout (manual layout 1.7 ms). Measure on device and pick Core Graphics/Core Animation when UIKit overhead matters.
AI-written summary · about
chapters (10)
- 0:00Introduction to UI performance
- 1:50Text rendering approaches
- 4:46Performance measurement method
- 7:15Meditation break on rounded corners
- 8:00Rounded corners techniques
- 10:32Shadows in iOS design
- 12:17Combining shadows and corners
- 14:45Layout strategies compared
- 16:51When performance matters
- 17:53Conclusion and takeaways
related talks
47mSwiftUI Performance for Demanding Apps
13mImproving Scrolling Performance through GPU Optimisation
24mSwiftUI Performance Tips
30mFrom Slow to Flow: Tips for Accelerating Your App Performance
39mPerformance issues: the usual suspects
42mTuning your app using Xcode's Instruments
35mSwiftUI Performance for Demanding Apps
54m60 fps UI on iOS
