Apple's Rosy Writer converted from Objective C to Swift