Note: this article is up to date as of Swift 5.0 and Xcode 10.2 XCTest is Apple’s framework for testing code and user interfaces. It provides a variety of methods for testing equality, comparison, and error-throwing. However, the function names can be longer than the test input, making it hard to see what is going […]
Using linear interpolation code for computer graphics can help make your iOS apps look better. Learn more about linear interpolation and how two point linear interpolation best works for your needs. See examples in a Linear Interpolation case study and learn how you can use it in your own apps.
I wrote BonMot quite by accident. I just wanted to document some typographic tips and tricks that I had learned. NSAttributedString and TextKit are powerful, but they can be impenetrable, and I wanted to shed some light on the situation. However, as I collected my thoughts, I realized that a unified interface for accessing disparate typographic features […]
Update – November 2016 BonMot, the library mentioned in this post, has received a significant update, and the code samples presented here are no longer valid. Check out the blog post introducing BonMot 4, which includes a link to the migration guide. Original Post: Correct use of localized strings is one of those things, like testing, accessibility, […]
It’s always a good idea to give your users context: at a glance, they should be able to figure out where they are, how they got there, and how to get back where they were before. One subtle but important way to give these cues is with animated deselection. If you’d like, download the sample […]
Swift extension is a programming language that developers love to use. Learn more about new Swift extensions, Swift userdefaults and Swift best practices. See real examples of Swift extension properties and, find Swift extension tricks for getting the best results.
Wrong assumptions are the bane of every programmer’s existence. Oh, you thought that number was always going to be non-zero? Guess again. What’s that? You never expected that conditional to fail? It just did. You expected that Core Data query to always return exactly one item? Why would you assume that? A great way to […]