An Xcode 9 project written in Swift 4 that demonstrates protocol oriented programming and reference semantics.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
UIKit Protocol Extension.xcodeproj
UIKit Protocol Extension
.gitignore
LICENSE.md
README.md

README.md

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