Skip to content

Instantly share code, notes, and snippets.

Hugh Mackworth mackworth

Block or report user

Report or block mackworth

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@mackworth
mackworth / Obectivej-C to Swift Syntax Translation.md
Last active Oct 13, 2017
Table showing the major translations from Objective-C to Swift syntax
View Obectivej-C to Swift Syntax Translation.md

Conversion Process from Objective-C syntax to Swift The most important first step is to run Apple's "Convert to Modern Objective-C Syntax" refactoring, so that you're using array/dictionary literals and bracket-accesses; these will then be usable in Swift. Note also that I'm a beginner in Swift, so my apologies for any mistakes or incompleteness here.

When you see this pattern Replace with this
Module
@interface *newType* : *superType* <*protocol1*, *protocol2*> class *newType* : *superType*, *protocol1*, *protocol2*
@implementation OR @synthesize OR @end Delete
Properties
You can’t perform that action at this time.