Skip to content

Instantly share code, notes, and snippets.

@quintonpryce
Last active July 18, 2019 19:20
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 quintonpryce/768108d3ae35cb06598a378b0e2a2f6e to your computer and use it in GitHub Desktop.
Save quintonpryce/768108d3ae35cb06598a378b0e2a2f6e to your computer and use it in GitHub Desktop.
Empty Parameter
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