The hottest Swift Substack posts right now

And their main takeaways
Category
Top Technology Topics
Jacob’s Tech Tavern • 2 HN points • 13 Nov 23
  1. Unit testing @Observable view models is crucial for ensuring reliability and stability in iOS development.
  2. The Observation Framework provides a solution for testing @Observable properties using withObservationTracking, improving the unit testing process.
  3. By leveraging the ObservationTestUtils package, developers can streamline unit testing of @Observable view models with less boilerplate code.
Jacob’s Tech Tavern • 2 HN points • 10 Oct 23
  1. Understanding Swift actors is crucial for managing re-entrancy and interleaving in your code.
  2. Building an optimal authentication service involves utilizing Swift actors to minimize duplicate work and network overhead.
  3. Swift concurrency model utilizes cooperative threading, executors, and actors to create an illusion of single-threadedness and prevent data races.
Get a weekly roundup of the best Substack posts, by hacker news affinity:
Jacob’s Tech Tavern • 1 HN point • 28 Mar 23
  1. Access control in Swift has a hierarchy from most restrictive to least restrictive.
  2. The `private` keyword in Swift makes code invisible outside the entity it's defined in.
  3. Using access control keywords like `public` and `internal`, along with modifiers like `private(set)` and `public private(set)`, helps maintain clean, secure code.
Jacob’s Tech Tavern • 0 implied HN points • 22 Aug 23
  1. Combine and async/await can be used together to write robust and maintainable software with modern language features.
  2. Testing @ObservableObject view models, Combine publishers in async methods, and Combine publishers converted to AsyncSequence are key in achieving unit test mastery.
  3. Understanding the interoperation between Combine and async/await is a powerful skill for writing unit tests and marrying the two concurrency approaches.