Make profile fields view VoiceOver accessible
This commit is contained in:
parent
ccc47e204d
commit
fa5abc27f7
|
@ -21,6 +21,13 @@ class ProfileFieldsView: UIView {
|
||||||
traitCollection.horizontalSizeClass == .compact && traitCollection.preferredContentSizeCategory > .extraLarge
|
traitCollection.horizontalSizeClass == .compact && traitCollection.preferredContentSizeCategory > .extraLarge
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override var accessibilityElements: [Any]? {
|
||||||
|
get {
|
||||||
|
fieldViews.flatMap { [$0.0, $0.1] }
|
||||||
|
}
|
||||||
|
set {}
|
||||||
|
}
|
||||||
|
|
||||||
override init(frame: CGRect) {
|
override init(frame: CGRect) {
|
||||||
super.init(frame: frame)
|
super.init(frame: frame)
|
||||||
commonInit()
|
commonInit()
|
||||||
|
|
|
@ -149,8 +149,7 @@ class ProfileHeaderView: UIView {
|
||||||
displayNameLabel!,
|
displayNameLabel!,
|
||||||
usernameLabel!,
|
usernameLabel!,
|
||||||
noteTextView!,
|
noteTextView!,
|
||||||
// TODO: voiceover for fieldsview
|
fieldsView!,
|
||||||
// fieldsView!,
|
|
||||||
moreButton!,
|
moreButton!,
|
||||||
pagesSegmentedControl!,
|
pagesSegmentedControl!,
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue