Skip to content

Latest commit

 

History

History
14 lines (7 loc) · 518 Bytes

File metadata and controls

14 lines (7 loc) · 518 Bytes

Protocol Oriented Programming in Swift - Part 2 of 2

Here's an Xcode 9 project written in Swift 4 that demonstrates protocol oriented programming and reference semantics.

I show you how to extend or enhance -- whichever term you prefer -- the UIView classe from UIKit using protocols.

The brevity of the code proves the power of protocols.

Here's what the app looks like:

alt text