Skip to content

Instantly share code, notes, and snippets.

@LeeKahSeng
Created August 3, 2017 02:04
Show Gist options
  • Save LeeKahSeng/e6c48fbaf13b32dcf10b7916be3f8896 to your computer and use it in GitHub Desktop.
Save LeeKahSeng/e6c48fbaf13b32dcf10b7916be3f8896 to your computer and use it in GitHub Desktop.
protocol MyProtocol {
var myVar1: String { get set }
var myVar2: String { get }
}
struct MyStruct: MyProtocol {
var myVar1 = ""
var myVar2 = ""
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment