SwiftUI Performance

Filter by category
Filter by tag

Optimize Your SwiftUI for Better Performance.

Feb 16, 2021Heshan yodagama
  • Performance

Profiling SwiftUI app using Instruments

Xcode comes with a bunch of tools you need to build, debug and release your apps. One of these tools is the Instruments app. The Instruments app is a great tool for profiling your iOS apps. It provides many profiling templates for debugging Core Data, catching memory leaks, disk read/writes, and much more. This week we will learn how to profile SwiftUI apps using the SwiftUI template.

Jan 20, 2021swiftwithmajid.com

SwiftUI provides us a very fast and easy to use diffing algorithm, but as you might know, diffing is a linear operation. It means that diffing will be very fast for simple layouts and can take some time for a complicated layout.

Jan 22, 2020swiftwithmajid.com

Xcode’s Instruments tool comes with a fantastic set of analytics for SwiftUI, allowing us to identify how often views were redrawn, how many times calculating the body of a view was slow, and even how our state has changed over time.

Jan 22, 2021www.hackingwithswift.com