Skip to content

Instantly share code, notes, and snippets.

@aqubi
Last active September 15, 2019 03:57
Show Gist options
  • Save aqubi/8ea764537e10da9560270cb093a2a7de to your computer and use it in GitHub Desktop.
Save aqubi/8ea764537e10da9560270cb093a2a7de to your computer and use it in GitHub Desktop.
//MARK:- Accessibility
override var accessibilityLabel: String? {
get {
return activityTypeLabel.accessibilityLabel
}
set { }
}
override var accessibilityValue: String? {
get {
var params:[String] = []
if !locationLabel.isHidden, let value = locationLabel.accessibilityLabel { params.append(value) }
if let value = dateLabel?.accessibilityLabel { params.append(value) }
if let value = timeLabel?.accessibilityLabel { params.append(value) }
if let value = sourceLabel?.accessibilityLabel { params.append(value) }
return params.joined(separator: ", ")
}
set { }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment