Last active
December 11, 2020 03:17
-
-
Save stevenchou1130/b4ddedfb80f45bf88558ef1b279c3408 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum Team { | |
case iOS | |
case android | |
} | |
protocol Engineer { | |
var team: Team { get } | |
var canDevelopiOS: Bool { get } | |
} | |
struct Steven: Engineer { | |
let team: Team | |
let canDevelopiOS: Bool | |
} | |
let steven = Steven(team: .iOS, canDevelopiOS: true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment