Tagged: Swift

UIFocus 0

tvOS UIFocusGuide demystified

A post about tvOS UIFocus enlightenment and a helper Class that I use to help debug my user interface work. Above you’ll notice four buttons (a screenshot from my actual Apple TV). You’ll also...

Swift 3: UITableView snap to cells 0

Swift 3: UITableView snap to cells

If you have your UITableViews snap to their cells, you’ll end up with a more refined user experience. This solution I have works with cells that are consistent in their height (static). You could...

Swift: Animating a mask for a UIView 0

Swift: Animating a mask for a UIView

I recently stumbled upon a really excellent article online entitled “UIDynamics, UIKit or OpenGL? 3 Types of iOS Animations For the Star Wars.” A lot of great discussion about performance of interesting techniques in...

[Swift] Quick number to word conversion 0

[Swift] Quick number to word conversion

If you’re ever setting content for things using loops (who isn’t, right?), you might often use the loop variable in a string to label something. Item 1, Item 2, etc. Especially when you’re simulating...

[Swift] UIScrollView snapping into place like in the iOS App Store 0

[Swift] UIScrollView snapping into place like in the iOS App Store

I was asked recently to modify the UIScrollViews that I implemented in an iOS application design. The request was to have our scroll views behave like the ones that appear in the iOS App...

String extension for range of characters/character at nth position 0

String extension for range of characters/character at nth position

I spotted this extension somewhere online a while ago (kjmcneish?) that can come in pretty handy.

Usage: