Created
October 15, 2018 03:24
-
-
Save vialyx/03f5fa0c981359d95a74bd6d6f6be98f 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
protocol ActivityIndicatorProtocol: class { | |
var activityIndicator: UIView? { get set } | |
} | |
extension ActivityIndicatorProtocol { | |
var activityIndicator: UIView? { | |
get { | |
// getter code | |
return nil | |
} | |
set { | |
// setter code | |
print("\(newValue)") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment