Michael Long
Dec 22, 2022

--

Thanks for the kind words.

When unit testing you're probably going to be making new registrations to mock behavior. You can push the current registration state, make your changes, then pop the pushed state when you're done, restoring the system back to its original state.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

No responses yet