Showing
2 changed files
with
46 additions
and
0 deletions
| ... | @@ -23,18 +23,21 @@ import SwiftEventBus | ... | @@ -23,18 +23,21 @@ import SwiftEventBus |
| 23 | @IBOutlet weak var dfyBadgeImage: UIImageView! | 23 | @IBOutlet weak var dfyBadgeImage: UIImageView! |
| 24 | @IBOutlet weak var dfyBadgeLabel: UILabel! | 24 | @IBOutlet weak var dfyBadgeLabel: UILabel! |
| 25 | @IBOutlet weak var dfyBannerLabel: UILabel! | 25 | @IBOutlet weak var dfyBannerLabel: UILabel! |
| 26 | + @IBOutlet weak var dfyBannerButton: UIButton! | ||
| 26 | 27 | ||
| 27 | @IBOutlet weak var marketBannerParentView: UIView! | 28 | @IBOutlet weak var marketBannerParentView: UIView! |
| 28 | @IBOutlet weak var marketBannerInnerView: UIView! | 29 | @IBOutlet weak var marketBannerInnerView: UIView! |
| 29 | @IBOutlet weak var marketBadgeImage: UIImageView! | 30 | @IBOutlet weak var marketBadgeImage: UIImageView! |
| 30 | @IBOutlet weak var marketBadgeLabel: UILabel! | 31 | @IBOutlet weak var marketBadgeLabel: UILabel! |
| 31 | @IBOutlet weak var marketBannerLabel: UILabel! | 32 | @IBOutlet weak var marketBannerLabel: UILabel! |
| 33 | + @IBOutlet weak var marketBannerButton: UIButton! | ||
| 32 | 34 | ||
| 33 | @IBOutlet weak var gfyBannerParentView: UIView! | 35 | @IBOutlet weak var gfyBannerParentView: UIView! |
| 34 | @IBOutlet weak var gfyBannerInnerView: UIView! | 36 | @IBOutlet weak var gfyBannerInnerView: UIView! |
| 35 | @IBOutlet weak var couponBadgeImage: UIImageView! | 37 | @IBOutlet weak var couponBadgeImage: UIImageView! |
| 36 | @IBOutlet weak var couponBadgeLabel: UILabel! | 38 | @IBOutlet weak var couponBadgeLabel: UILabel! |
| 37 | @IBOutlet weak var gfyBannerLabel: UILabel! | 39 | @IBOutlet weak var gfyBannerLabel: UILabel! |
| 40 | + @IBOutlet weak var gfyBannerButton: UIButton! | ||
| 38 | 41 | ||
| 39 | @IBOutlet weak var boxBannerParentView: UIView! | 42 | @IBOutlet weak var boxBannerParentView: UIView! |
| 40 | @IBOutlet weak var boxBannerInnerParentView: UIView! | 43 | @IBOutlet weak var boxBannerInnerParentView: UIView! |
| ... | @@ -42,6 +45,7 @@ import SwiftEventBus | ... | @@ -42,6 +45,7 @@ import SwiftEventBus |
| 42 | @IBOutlet weak var boxBadgeImage: UIImageView! | 45 | @IBOutlet weak var boxBadgeImage: UIImageView! |
| 43 | @IBOutlet weak var boxBadgeLabel: UILabel! | 46 | @IBOutlet weak var boxBadgeLabel: UILabel! |
| 44 | @IBOutlet weak var boxBannerLabel: UILabel! | 47 | @IBOutlet weak var boxBannerLabel: UILabel! |
| 48 | + @IBOutlet weak var boxBannerButton: UIButton! | ||
| 45 | 49 | ||
| 46 | public var coupons:Array<swiftApi.CouponItemModel> = swiftApi().getCouponList() | 50 | public var coupons:Array<swiftApi.CouponItemModel> = swiftApi().getCouponList() |
| 47 | public var dfyCoupons:Array<swiftApi.ActiveDFYCouponModel> = swiftApi().getActiveDFYCoupons() | 51 | public var dfyCoupons:Array<swiftApi.ActiveDFYCouponModel> = swiftApi().getActiveDFYCoupons() |
| ... | @@ -94,6 +98,8 @@ import SwiftEventBus | ... | @@ -94,6 +98,8 @@ import SwiftEventBus |
| 94 | setBackButton("ic_close_3") | 98 | setBackButton("ic_close_3") |
| 95 | setNavigationTitle("Ιστορικό") | 99 | setNavigationTitle("Ιστορικό") |
| 96 | 100 | ||
| 101 | + self.historySectionView.accessibilityElementsHidden = true | ||
| 102 | + | ||
| 97 | // === images === // | 103 | // === images === // |
| 98 | 104 | ||
| 99 | sumBadgeImage.image = UIImage(named: "history_heart", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | 105 | sumBadgeImage.image = UIImage(named: "history_heart", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) |
| ... | @@ -136,6 +142,19 @@ import SwiftEventBus | ... | @@ -136,6 +142,19 @@ import SwiftEventBus |
| 136 | self.updateUI() | 142 | self.updateUI() |
| 137 | } | 143 | } |
| 138 | 144 | ||
| 145 | + public override func viewDidAppear(_ animated: Bool) { | ||
| 146 | + super.viewDidAppear(animated) | ||
| 147 | + | ||
| 148 | +// DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) { | ||
| 149 | + UIAccessibility.post(notification: .screenChanged, argument: self.navigationItem.titleView) | ||
| 150 | +// } | ||
| 151 | + | ||
| 152 | + // Re-enable table view accessibility after the announcement | ||
| 153 | + DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) { | ||
| 154 | + self.historySectionView.accessibilityElementsHidden = false | ||
| 155 | + } | ||
| 156 | + } | ||
| 157 | + | ||
| 139 | // public override func viewWillDisappear(_ animated: Bool) { | 158 | // public override func viewWillDisappear(_ animated: Bool) { |
| 140 | // super.viewWillDisappear(animated) | 159 | // super.viewWillDisappear(animated) |
| 141 | // | 160 | // |
| ... | @@ -354,6 +373,29 @@ import SwiftEventBus | ... | @@ -354,6 +373,29 @@ import SwiftEventBus |
| 354 | boxAttributedString.append(boxNormalString) | 373 | boxAttributedString.append(boxNormalString) |
| 355 | boxBannerLabel.attributedText = boxAttributedString | 374 | boxBannerLabel.attributedText = boxAttributedString |
| 356 | 375 | ||
| 376 | + setupAccessibilty() | ||
| 377 | + } | ||
| 378 | + | ||
| 379 | + func setupAccessibilty () { | ||
| 380 | + dfyBannerButton.isAccessibilityElement = true | ||
| 381 | + dfyBannerButton.accessibilityLabel = dfyBannerLabel?.text ?? "" | ||
| 382 | + dfyBannerButton.accessibilityHint = "Διπλό πάτημα για άνοιγμα" | ||
| 383 | + dfyBannerButton.accessibilityTraits = .button | ||
| 384 | + | ||
| 385 | + marketBannerButton.isAccessibilityElement = true | ||
| 386 | + marketBannerButton.accessibilityLabel = marketBannerLabel?.text ?? "" | ||
| 387 | + marketBannerButton.accessibilityHint = "Διπλό πάτημα για άνοιγμα" | ||
| 388 | + marketBannerButton.accessibilityTraits = .button | ||
| 389 | + | ||
| 390 | + gfyBannerButton.isAccessibilityElement = true | ||
| 391 | + gfyBannerButton.accessibilityLabel = gfyBannerLabel?.text ?? "" | ||
| 392 | + gfyBannerButton.accessibilityHint = "Διπλό πάτημα για άνοιγμα" | ||
| 393 | + gfyBannerButton.accessibilityTraits = .button | ||
| 394 | + | ||
| 395 | + boxBannerButton.isAccessibilityElement = true | ||
| 396 | + boxBannerButton.accessibilityLabel = boxBannerLabel?.text ?? "" | ||
| 397 | + boxBannerButton.accessibilityHint = "Διπλό πάτημα για άνοιγμα" | ||
| 398 | + boxBannerButton.accessibilityTraits = .button | ||
| 357 | } | 399 | } |
| 358 | 400 | ||
| 359 | // MARK: - Actions | 401 | // MARK: - Actions | ... | ... |
| ... | @@ -2553,6 +2553,7 @@ | ... | @@ -2553,6 +2553,7 @@ |
| 2553 | <connections> | 2553 | <connections> |
| 2554 | <outlet property="boxBadgeImage" destination="N64-1U-kqo" id="3na-N4-CId"/> | 2554 | <outlet property="boxBadgeImage" destination="N64-1U-kqo" id="3na-N4-CId"/> |
| 2555 | <outlet property="boxBadgeLabel" destination="iA9-tR-Hgg" id="ODX-ZK-p5o"/> | 2555 | <outlet property="boxBadgeLabel" destination="iA9-tR-Hgg" id="ODX-ZK-p5o"/> |
| 2556 | + <outlet property="boxBannerButton" destination="Gob-8i-BFa" id="Dez-ov-bpB"/> | ||
| 2556 | <outlet property="boxBannerInnerParentView" destination="peZ-R0-M9v" id="PeH-6i-Z09"/> | 2557 | <outlet property="boxBannerInnerParentView" destination="peZ-R0-M9v" id="PeH-6i-Z09"/> |
| 2557 | <outlet property="boxBannerInnerView" destination="gw1-A6-saC" id="YxH-rb-cvw"/> | 2558 | <outlet property="boxBannerInnerView" destination="gw1-A6-saC" id="YxH-rb-cvw"/> |
| 2558 | <outlet property="boxBannerLabel" destination="8e8-3x-tWd" id="Wec-Qi-Mdo"/> | 2559 | <outlet property="boxBannerLabel" destination="8e8-3x-tWd" id="Wec-Qi-Mdo"/> |
| ... | @@ -2561,16 +2562,19 @@ | ... | @@ -2561,16 +2562,19 @@ |
| 2561 | <outlet property="couponBadgeLabel" destination="Yka-zq-f4R" id="w1j-eu-8kD"/> | 2562 | <outlet property="couponBadgeLabel" destination="Yka-zq-f4R" id="w1j-eu-8kD"/> |
| 2562 | <outlet property="dfyBadgeImage" destination="zGH-5Y-xb0" id="DD4-ef-4YZ"/> | 2563 | <outlet property="dfyBadgeImage" destination="zGH-5Y-xb0" id="DD4-ef-4YZ"/> |
| 2563 | <outlet property="dfyBadgeLabel" destination="brW-kC-Au6" id="uNa-Yi-Z7A"/> | 2564 | <outlet property="dfyBadgeLabel" destination="brW-kC-Au6" id="uNa-Yi-Z7A"/> |
| 2565 | + <outlet property="dfyBannerButton" destination="wA1-fE-Jq0" id="rzZ-cP-YbD"/> | ||
| 2564 | <outlet property="dfyBannerInnerParentView" destination="k2K-eS-9Kc" id="mBb-l2-IZ7"/> | 2566 | <outlet property="dfyBannerInnerParentView" destination="k2K-eS-9Kc" id="mBb-l2-IZ7"/> |
| 2565 | <outlet property="dfyBannerInnerView" destination="z4v-Pj-F2j" id="IhR-ld-2I0"/> | 2567 | <outlet property="dfyBannerInnerView" destination="z4v-Pj-F2j" id="IhR-ld-2I0"/> |
| 2566 | <outlet property="dfyBannerLabel" destination="NZD-EQ-zM8" id="LLu-4l-8RC"/> | 2568 | <outlet property="dfyBannerLabel" destination="NZD-EQ-zM8" id="LLu-4l-8RC"/> |
| 2567 | <outlet property="dfyBannerParentView" destination="gpg-vO-M3t" id="p8y-aD-T61"/> | 2569 | <outlet property="dfyBannerParentView" destination="gpg-vO-M3t" id="p8y-aD-T61"/> |
| 2570 | + <outlet property="gfyBannerButton" destination="OQk-lc-BF2" id="0wu-60-Bbc"/> | ||
| 2568 | <outlet property="gfyBannerInnerView" destination="Vl0-Ut-pAv" id="k4C-Td-oZi"/> | 2571 | <outlet property="gfyBannerInnerView" destination="Vl0-Ut-pAv" id="k4C-Td-oZi"/> |
| 2569 | <outlet property="gfyBannerLabel" destination="fib-pb-hxL" id="utC-j6-eAF"/> | 2572 | <outlet property="gfyBannerLabel" destination="fib-pb-hxL" id="utC-j6-eAF"/> |
| 2570 | <outlet property="gfyBannerParentView" destination="fvz-Hc-IR8" id="xd5-P6-I0N"/> | 2573 | <outlet property="gfyBannerParentView" destination="fvz-Hc-IR8" id="xd5-P6-I0N"/> |
| 2571 | <outlet property="historySectionView" destination="1a0-WF-wSk" id="XAg-Fm-xUT"/> | 2574 | <outlet property="historySectionView" destination="1a0-WF-wSk" id="XAg-Fm-xUT"/> |
| 2572 | <outlet property="marketBadgeImage" destination="0Yq-wr-Uch" id="Vi7-BW-DG4"/> | 2575 | <outlet property="marketBadgeImage" destination="0Yq-wr-Uch" id="Vi7-BW-DG4"/> |
| 2573 | <outlet property="marketBadgeLabel" destination="TNl-dh-eez" id="gr5-Ts-2Zl"/> | 2576 | <outlet property="marketBadgeLabel" destination="TNl-dh-eez" id="gr5-Ts-2Zl"/> |
| 2577 | + <outlet property="marketBannerButton" destination="q9f-tx-YjE" id="hEM-7q-Rpl"/> | ||
| 2574 | <outlet property="marketBannerInnerView" destination="Wep-CV-giJ" id="1rc-Iy-Y4B"/> | 2578 | <outlet property="marketBannerInnerView" destination="Wep-CV-giJ" id="1rc-Iy-Y4B"/> |
| 2575 | <outlet property="marketBannerLabel" destination="fd8-yE-8OO" id="rfp-em-S3E"/> | 2579 | <outlet property="marketBannerLabel" destination="fd8-yE-8OO" id="rfp-em-S3E"/> |
| 2576 | <outlet property="marketBannerParentView" destination="EQg-Ij-vWV" id="AgZ-6n-3CQ"/> | 2580 | <outlet property="marketBannerParentView" destination="EQg-Ij-vWV" id="AgZ-6n-3CQ"/> | ... | ... |
-
Please register or login to post a comment