Wed, Aug 27
Extended File Attributes in Swift

Sergey Pershenkov sent me a note to share his open source project for BSD system functions to handle extended file attributes in Swift.

Download swift-xattr

NSDate Extensions in Swift

Melvin Rivera is the author of AFDateHelper, a sizeable list of extensions for NSDate, written in Swift.

In this open source project you’ll find extensions to compare dates, determine time interval between dates, create dates from string, among others.

The published extensions have all been tested with Xcode 6 (beta 6).

Tue, Aug 26
Introduction to iOS WKWebView

Although I’ve used UIWebView over the years, there was never a compelling reason to make it a go-to UI control. With the introduction of WKWebView, my perspective may change.

Mattt Thompson:

Boasting responsive 60fps scrolling, built-in gestures, streamlined communication between app and webpage, and the same JavaScript engine as Safari, WKWebView is one of the most significant announcements to come out of WWDC 2014

And this is intriguing:

One of the major improvements over UIWebView is how interaction and data can be passed back and forth between an app and its web content.

WKWebView sounds well worth a closer look. Mattt provides a good introduction.

How to Code Custom Subscripts in Swift

If you are learning Swift and haven’t bumped into Coding Explorer, you owe it to yourself to stop by – there are several informative Swift code examples.

The most recent post covers custom subscripts in Swift. This is an interesting topic and the post does a good job covering the basics. Here’s a teaser on Subscripts in Swift:

Swift made it rather easy to implement subscripts in your own classes. Sure you can use an Array or Dictionary type if you wanted, and in many cases you should, but if writing it in subscript syntax is clearer and more expressive, that is a good reason to use it.

Mon, Aug 25
Crypto Functions Written in Swift

Coding in Swift? Need crypto functions?

Marcin Krzyzanowski may have just the ticket:

Crypto related functions and helpers for Swift implemented in Swift programming language.

What’s included to date: MD5, SHA1, SHA224, SHA256, SHA384, SHA512, CRC32

Spring-Based Animations Using Damped Harmonics

Erica Sadun wrote a good introduction to adding bounce to UIViews based on spring-based animators in iOS 7:

Although you can always roll your physics-based animations, UIKit now offers one exceedingly handy built-in utility based on damped harmonics.

I’m intrigued, but memory no longer serves me (if it was ever in there at all) on damped harmonics. Google turned up this:

read more »

Sat, Aug 23
What To Do When Things Go Wrong with Git

Kate Hudson is the creator of Git Flight Rules – a guide about what to do when things go wrong when working with Git.

Despite Git’s simplicity on the surface, there is a fair amount of depth to the tool. And with that comes the opportunity to really mess things up.

I like this idea behind this project, it may just save one’s bacon some day.