Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
liberty
tunnel
liberty-tunnel-client-library-apple
Commits
9bd814b3
Commit
9bd814b3
authored
Jul 24, 2019
by
Jose Blaya
Browse files
Add accessibility label to purchase cells
parent
f4b55064
Changes
1
Hide whitespace changes
Inline
Side-by-side
PIALibrary/Sources/UI/iOS/PurchasePlanCell.swift
View file @
9bd814b3
...
...
@@ -34,6 +34,8 @@ class PurchasePlanCell: UICollectionViewCell, Restylable {
isSelected
=
false
labelBestValue
.
text
=
L10n
.
Welcome
.
Plan
.
bestValue
.
uppercased
()
selectedPlanImageView
.
alpha
=
0
self
.
accessibilityTraits
=
UIAccessibilityTraits
.
button
self
.
isAccessibilityElement
=
true
}
func
fill
(
plan
:
PurchasePlan
)
{
...
...
@@ -57,6 +59,7 @@ class PurchasePlanCell: UICollectionViewCell, Restylable {
labelPlan
.
text
=
plan
.
title
labelDetail
.
text
=
plan
.
detail
labelPrice
.
text
=
L10n
.
Welcome
.
Plan
.
priceFormat
(
plan
.
monthlyPriceString
)
self
.
accessibilityLabel
=
"
\(
plan
.
title
)
\(
plan
.
detail
)
\(
labelPrice
.
text
)
"
viewBestValue
.
isHidden
=
!
plan
.
bestValue
if
viewBestValue
.
isHidden
{
bestValueHeightConstraint
.
constant
=
0
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment