Created
October 27, 2017 12:29
-
-
Save KaneCheshire/4340b0ddbd9ee2a562f3afd333e028ed to your computer and use it in GitHub Desktop.
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
struct CellViewModel: AccessibilityModel { | |
// Standard view model properties | |
// that we use to populate a cell | |
let titleString: String | |
let subtitleString: String | |
let actionString: String | |
// AccessibilityModel properties | |
let isAccessibilityElement: Bool = true | |
var accessibilityLabel: String? { | |
return "\(titleString), \(subtitleString)" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment