Last active
July 18, 2019 19:20
-
-
Save quintonpryce/768108d3ae35cb06598a378b0e2a2f6e to your computer and use it in GitHub Desktop.
Empty Parameter
This file contains 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
class EmptyParameter: AnalyticsParameter { | |
var parameter: Bool? | |
typealias ParameterType = Bool? | |
init() { | |
parameter = nil | |
} | |
} | |
extension AnalyticsParameter { | |
func isEmpty() -> Bool { | |
return self as? EmptyParameter != nil | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment