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
|
||||
}
|
||||
|
||||
override var accessibilityElements: [Any]? {
|
||||
get {
|
||||
fieldViews.flatMap { [$0.0, $0.1] }
|
||||
}
|
||||
set {}
|
||||
}
|
||||
|
||||
override init(frame: CGRect) {
|
||||
super.init(frame: frame)
|
||||
commonInit()
|
||||
|
|
|
@ -149,8 +149,7 @@ class ProfileHeaderView: UIView {
|
|||
displayNameLabel!,
|
||||
usernameLabel!,
|
||||
noteTextView!,
|
||||
// TODO: voiceover for fieldsview
|
||||
// fieldsView!,
|
||||
fieldsView!,
|
||||
moreButton!,
|
||||
pagesSegmentedControl!,
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue