Debug and Investigate SwiftUI

Last updated: 4 months ago

SwiftUI and Combine provide a new means to rapidly create responsive user interfaces just in code, skipping the unbeloved storyboards.

Although this framework is easy to be used usually works quite smoothly, it's pretty hard to debug when it just does not work in the way we expect it should do.

This talks gives some hints on how to deal with unexpected behavior of the framework interactions, covering e.g.

  • understanding compiler errors
  • using timers
  • unexpected unsubscriptions
  • performance issues
  • and others

P.S. This talk will not describe the technical building blocks of SwiftUI (Function Builders, Property Delegates, Combine) since there are already several proposes that cover this aspect.