Skip to content

Commit

Permalink
feat(Accessibility): IOS-9797 VIVO Novo app accessibility: Titles in …
Browse files Browse the repository at this point in the history
…native content
  • Loading branch information
dhidalgofadrique committed Apr 17, 2024
1 parent af44945 commit 7fb989e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Sources/Mistica/Components/Header/HeaderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,15 @@ public extension HeaderView {
}
}

var titleAccessibilityTraits: UIAccessibilityTraits {
get {
titleLabel.accessibilityTraits
}
set {
titleLabel.accessibilityTraits = newValue
}
}

var descriptionAccessibilityLabel: String? {
get {
descriptionLabel.accessibilityLabel
Expand Down
15 changes: 15 additions & 0 deletions Sources/Mistica/Components/Title/TitleView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,21 @@ public class TitleView: UITableViewHeaderFooterView {
}
}

// MARK: - Accessibility

public extension TitleView {
var titleAccessibilityTraits: UIAccessibilityTraits {
get {
titleLabel.accessibilityTraits
}
set {
titleLabel.accessibilityTraits = newValue
}
}
}

// MARK: - Private methods

private extension TitleView {
func commonInit() {
layoutViews()
Expand Down

0 comments on commit 7fb989e

Please sign in to comment.