Skip to content

Instantly share code, notes, and snippets.

@ileitch
Created September 22, 2018 10:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ileitch/11dccb1745e2113911341e3e02fe9446 to your computer and use it in GitHub Desktop.
Save ileitch/11dccb1745e2113911341e3e02fe9446 to your computer and use it in GitHub Desktop.
import Foundation
import Cocoa
protocol FixtureProtocol100 {
var someGetSetVar: Bool { get set }
}
extension FixtureProtocol100 {
var someGetSetVar: Bool {
get { return false }
set { }
}
}
class FixtureClass100: NSView, FixtureProtocol100 {
var someGetSetVar: Bool { return true }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment