Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2025-02-07 12:59:58 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ab874bdba5443738782ef5ec69ef5be1e378e182
ab874bdb
1 parent
ae03f4f8
ContextualViewController accessibilities
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ContextualViewController.swift
View file @
ab874bd
...
...
@@ -111,6 +111,7 @@ import SwiftEventBus
toggleTerms
()
setupAccessibilty
()
}
public
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
...
@@ -123,6 +124,23 @@ import SwiftEventBus
// MARK: - Functions
func
setupAccessibilty
()
{
couponImage
.
isAccessibilityElement
=
true
couponImage
.
accessibilityLabel
=
"Φωτογραφία εκπτωτικού κουπονιού"
couponImage
.
accessibilityTraits
=
.
image
redeemButton
.
isAccessibilityElement
=
true
redeemButton
.
accessibilityLabel
=
redeemButton
.
title
(
for
:
.
normal
)
redeemButton
.
accessibilityHint
=
"Διπλό πάτημα για άνοιγμα"
redeemButton
.
accessibilityTraits
=
.
button
termsButton
.
isAccessibilityElement
=
true
termsButton
.
accessibilityLabel
=
termsButton
.
title
(
for
:
.
normal
)
termsButton
.
accessibilityHint
=
"Διπλό πάτημα για εμφάνιση"
termsButton
.
accessibilityTraits
=
.
button
termsButton
.
accessibilityValue
=
"Συμπτυγμένο"
}
func
showSpinner
()
{
// add the spinner view controller
// addChild(spinner)
...
...
@@ -150,11 +168,17 @@ import SwiftEventBus
termsTextViewHeight
.
constant
=
termsTextView
.
sizeThatFits
(
targetSize
)
.
height
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark_2.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
accessibilityValue
=
"Ανεπτυγμένο"
termsButton
.
accessibilityHint
=
"Διπλό πάτημα για απόκρυψη"
}
else
{
termsTextView
.
isHidden
=
true
termsTextViewHeight
.
constant
=
CGFloat
(
0
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark_2.png"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
),
for
:
.
normal
)
termsButton
.
accessibilityValue
=
"Συμπτυγμένο"
termsButton
.
accessibilityHint
=
"Διπλό πάτημα για εμφάνιση"
}
}
...
...
Please
register
or
login
to post a comment