Generics is not a new concept - but Swift’s powerful type system takes them to new levels and enables some really cool features. One such feature is generic type constraints. Using them, you are able to only add certain APIs and behaviours to implementors of a generic type that match a certain set of constraints.
Xcode 9 is over 10GB, but that’s only its starting size. There is always a trade-off between cutting size and adding features. Here is a neat trick to reduce the post-install size, saving as much as 20GB of space.
Sometimes it’s better to crash than to have your app running in an inconsistent state. In this short article, Dejan covers the options you have for crashing and what are the main differences between them.
When it comes to structuring a React app, the ideal structure is the one that allows you to move around your code with the least amount of effort. In this post, David Gilbertson tells how he structures his React apps.
The iOS 11 update of our beginner book will be released later this month with expanded content. All our Swift books come with 1-year free update. You can get the book now and receive the update for free.
We released several new chapters for our Intermediate iOS 10 Programming with Swift ebook. You will learn how to build an Instagram-like app with Firebase and more. This book will also be updated for Swift 4.
In this article, see how Safari displays your existing websites beautifully on the edge-to-edge display of the new iPhone X. Content is automatically inset within the display’s safe area so it is not obscured by the rounded corners or the device’s sensor housing.