In this week’s issue John Sundell explains how to create custom collections, Mike Ash shows how weak
|
October 4 · Issue #92 · View online |
|
Happy reading! As always, if you’d like to support Swift Weekly please share this issue with friends and colleagues.
|
|
|
Creating custom collections in Swift — Swift by Sundell
When creating collections of objects or values in Swift, we usually use
data structures provided by the standard library - such as
Array, Dictionary and Set. While those three cover most use cases,
sometimes creating a custom wrapper collection can enable you to make your
code more predictable and less prone to errors.
John Sundell takes a look at how we as app developers can define such
custom collections in Swift!
|
mikeash.com: Friday Q&A 2017-09-22: Swift 4 Weak References
Mike Ash talks about the current implementation of weak references and how it works compared to the old one.
|
Floating-point Swift, ulp, and epsilon · Jesse Squires
Jesse Squires explains how floating-point numbers work in Swift and what the .ulpOfOne and .ulp properties do.
|
Updating Strings For Swift 4
Another year passes and another set of changes to the Swift String API arrives. Swift 4 brings some much needed improvements and simplifications to String. These are Keith Harrison’s notes on what he needed to change to update his Swift String Cheat Sheet for Swift 4.
|
Debugging Swift code with LLDB – Flawless App Stories – Medium
It’s extremely important to make the debugging process as simple as possible. Ahmed Sulaiman shares some of his personal LLDB tricks.
|
The power of switch statements in Swift — Swift by Sundell
While switch statements are hardly something that was invented as part of
Swift, they are made a lot more powerful when combined with Swift’s type
system. John Sundell goes further beyond switching on single enum
values and takes a look at more of the powerful capabilities that switch
statements offer in Swift.
|
Writing a Scalable API Client in Swift 4 – Making Tuenti – Medium
Do you want to play with Codable, the new kid in Swift 4? Víctor Pimentel writes a wonderful and extensible API client!
|
Swift’s JSONDecoder in the real world | Dave Lyon
A few helpful tips on dealing with less-than-ideal JSON responses with Codable in Swift 4 and Xcode 9.
|
Manage different environments in your Swift project with ease
This tutorial explains how to manage different environments in your Swift project.
|
Nobody expects Completion Inquisition! – Bartosz Polaczyk – Medium
Testing whether a given completion handler was called is really simple with XCTestExpectation. Things get complicated if your test case has to verify whether the handler was not called.
|
|
Swift.org - Swift 4.0 Released!
Swift 4 is now officially released! Swift 4 builds on the strengths of Swift 3, delivering greater robustness and stability, providing source code compatibility with Swift 3, making improvements to the standard library, and adding features like archival and serialization.
|
Apple Updates Swift Playgrounds With New Augmented Reality Challenge - Mac Rumors
The new Swift Playgrounds update introduces a new Augmented Reality challenge that uses ARKit in iOS 11 to showcase Byte’s virtual world within the real world.
|
|
Flexible View Controller Interfaces With Swift 4
James takes a look at how to use Swift 4 to create view controller interfaces that are easier to read and ready for seamless use.
|
Creating a Computer Vision Machine Learning App From The Ground Up - Jorge Molina & George Karavias on Vimeo
Join Jorge Molina and George Karavias as they go step by step through the whole process of creating a machine learning app from the ground up.
|
Map and FlatMap Magic
Neem Serra explains how to improve your code readability and compactness by using mapping and flatMapping in Swift
|
|
GitHub - krzysztofzablocki/LifetimeTracker
LifetimeTracker - Find retain cycles / memory leaks sooner.
|
GitHub - swift-server/http at 0.1.0
http - Repository for the development of cross-platform HTTP APIs
|
GitHub - HamzaGhazouani/HGCircularSlider
HGCircularSlider - A custom reusable circular/progress slider control for iOS application.
|
GitHub - dreymonde/Time
Time - 🕰 Type-safe time calculations in Swift, powered by generics
|
GitHub - nmdias/InfoKit
InfoKit - Strongly Typed access to the Info.plist for iOS, macOS and tvOS.
|
GitHub - hyperoslo/Imaginary
Imaginary - :unicorn: Remote images, as easy as one, two, three.
|
GitHub - yonaskolb/Mint
Mint - A package manager that installs and runs Swift command line tools
|
Did you enjoy this issue?
|
|
|
|
If you don't want these updates anymore, please unsubscribe here
If you were forwarded this newsletter and you like it, you can subscribe here
|
|
|