IOS Architecture at Lyft
Fresh Swift - Recent content on Fresh Swift
by
2y ago
This is a great post from Scott Berrevoets in which he describes the evolution of iOS app architecture at Lyft. Scott first describes the problems with the original app architecture and then details how concepts such as dependency injection and plugins addressed these problems. Swift code samples included ..read more
Visit website
Download Progress With Awaited Network Tasks
Fresh Swift - Recent content on Fresh Swift
by
2y ago
Available in iOS 15, URLSession's bytes(from:delegate:) method retrieves the contents of a given URL and delivers an asynchronous sequence of bytes. In this post, Soroush Khanlou guides how to best use this flexible new API, demonstrating how it can be used to implement download progress feedback ..read more
Visit website
What is a KeyPath in Swift
Fresh Swift - Recent content on Fresh Swift
by
2y ago
Key-Path expressions in Swift allow us to dynamically access type properties. In this post, Sarun Wongpatcharapakorn describes the various KeyPath types available, explains their usage, and provides examples of their use ..read more
Visit website
Value integrity in Swift
Fresh Swift - Recent content on Fresh Swift
by
2y ago
In the context of programming, integrity means making sure that a piece of data follows the correct business rules. In this excellent post, Luis Recuenco analyzes different alternatives to ensuring value integrity in Swift. Luis first examines how Swift's type system can help ensure integrity, before looking at language features such as property wrappers ..read more
Visit website
Performance: Actor vs queue vs lock
Fresh Swift - Recent content on Fresh Swift
by
2y ago
Swift 5.5's Actor type allows only one task to access their mutable state at a time. This provides one method of implementing synchronization, which prevents threads from accessing shared data at the same time. In this short but interesting post, Marin Todorov benchmarks the performance of three methods of implementing synchronization in Swift - Actor, DispatchQueue, and Lock ..read more
Visit website
Swift 5.5 Released!
Fresh Swift - Recent content on Fresh Swift
by
2y ago
Swift 5.5 is officially released, and despite only being a minor release - according to semantic versioning - it includes lots of new language capabilities. In this post to the official Swift blog, Ted Kremenek of the Swift Core Team announces the release and lists the changes and improvements. It's nice to see Ted also thanking the Swift community for their involvement in the proposals for this release ..read more
Visit website
Swift concurrency back deployment
Fresh Swift - Recent content on Fresh Swift
by
2y ago
Doug Gregor, a member of the Swift team at Apple, recently opened a PR that adds an option to build the Swift 5.5 Concurrency libraries for older versions of macOS/iOS. This PR generated a lot of interest amongst the Swift community, with people wondering if Swift's new concurrency model would soon be available for use in older OS versions. In this post to the Swift forums, Doug explains the changes contained in his PR ..read more
Visit website
The difference between Thread.sleep() and Task.sleep()
Fresh Swift - Recent content on Fresh Swift
by
2y ago
Swift 5.5 introduces tasks, which represent a unit of work that can be run asynchronously. In this post, Marin Todorov compares Thread.sleep() and Task.sleep(), using this comparison to help explain some of the benefits of Swift's new concurrency model ..read more
Visit website
Command Pattern in real-life
Fresh Swift - Recent content on Fresh Swift
by
2y ago
The Command design pattern turns a request into a stand-alone object that contains all information about the request. In this short post, Michael Abadi Santoso shows us how he used the command pattern to provide an abstract implementation of analytics tracking in an app ..read more
Visit website
Pitching Optional Throws in Swift
Fresh Swift - Recent content on Fresh Swift
by
2y ago
Swift provides support for throwing, catching, and propagating errors at runtime. When a function throws, callers are required to handle any possible errors. This Swift evolution pitch from Michael Verges proposes optional throws, allowing callers of throwing functions to choose whether or not they want to handle possible errors. Very interesting ..read more
Visit website

Follow Fresh Swift - Recent content on Fresh Swift on FeedSpot

Continue with Google
Continue with Apple
OR