Merge branch 'master' of https://git.warp.ly/open-source/warply_sdk_framework
Showing
4 changed files
with
55 additions
and
0 deletions
... | @@ -8,6 +8,7 @@ | ... | @@ -8,6 +8,7 @@ |
8 | 8 | ||
9 | /* Begin PBXBuildFile section */ | 9 | /* Begin PBXBuildFile section */ |
10 | 1E7564BA2823C6D900B9D2AE /* ViewControllerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7564B92823C6D900B9D2AE /* ViewControllerExtensions.swift */; }; | 10 | 1E7564BA2823C6D900B9D2AE /* ViewControllerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7564B92823C6D900B9D2AE /* ViewControllerExtensions.swift */; }; |
11 | + 1E7564BC2823FE0B00B9D2AE /* CouponViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7564BB2823FE0B00B9D2AE /* CouponViewController.swift */; }; | ||
11 | 260C6A1AFF7560C32E212F20 /* Pods_WarplySDKFrameworkIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */; }; | 12 | 260C6A1AFF7560C32E212F20 /* Pods_WarplySDKFrameworkIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */; }; |
12 | E634A369282299770069DE27 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E634A368282299760069DE27 /* Main.storyboard */; }; | 13 | E634A369282299770069DE27 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E634A368282299760069DE27 /* Main.storyboard */; }; |
13 | E634A36B2822999B0069DE27 /* CouponsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A36A2822999B0069DE27 /* CouponsViewController.swift */; }; | 14 | E634A36B2822999B0069DE27 /* CouponsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A36A2822999B0069DE27 /* CouponsViewController.swift */; }; |
... | @@ -137,6 +138,7 @@ | ... | @@ -137,6 +138,7 @@ |
137 | /* Begin PBXFileReference section */ | 138 | /* Begin PBXFileReference section */ |
138 | 1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | 139 | 1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; }; |
139 | 1E7564B92823C6D900B9D2AE /* ViewControllerExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewControllerExtensions.swift; sourceTree = "<group>"; }; | 140 | 1E7564B92823C6D900B9D2AE /* ViewControllerExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewControllerExtensions.swift; sourceTree = "<group>"; }; |
141 | + 1E7564BB2823FE0B00B9D2AE /* CouponViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponViewController.swift; sourceTree = "<group>"; }; | ||
140 | B9413513157AD76ECE896B81 /* Pods-WarplySDKFrameworkIOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WarplySDKFrameworkIOS.release.xcconfig"; path = "Target Support Files/Pods-WarplySDKFrameworkIOS/Pods-WarplySDKFrameworkIOS.release.xcconfig"; sourceTree = "<group>"; }; | 142 | B9413513157AD76ECE896B81 /* Pods-WarplySDKFrameworkIOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WarplySDKFrameworkIOS.release.xcconfig"; path = "Target Support Files/Pods-WarplySDKFrameworkIOS/Pods-WarplySDKFrameworkIOS.release.xcconfig"; sourceTree = "<group>"; }; |
141 | E634A368282299760069DE27 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; }; | 143 | E634A368282299760069DE27 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; }; |
142 | E634A36A2822999B0069DE27 /* CouponsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponsViewController.swift; sourceTree = "<group>"; }; | 144 | E634A36A2822999B0069DE27 /* CouponsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponsViewController.swift; sourceTree = "<group>"; }; |
... | @@ -336,6 +338,7 @@ | ... | @@ -336,6 +338,7 @@ |
336 | E67D1EC528117F2400940F01 /* swiftApi.swift */, | 338 | E67D1EC528117F2400940F01 /* swiftApi.swift */, |
337 | E634A368282299760069DE27 /* Main.storyboard */, | 339 | E634A368282299760069DE27 /* Main.storyboard */, |
338 | E634A36A2822999B0069DE27 /* CouponsViewController.swift */, | 340 | E634A36A2822999B0069DE27 /* CouponsViewController.swift */, |
341 | + 1E7564BB2823FE0B00B9D2AE /* CouponViewController.swift */, | ||
339 | E634A36E2823D2290069DE27 /* WalletViewController.swift */, | 342 | E634A36E2823D2290069DE27 /* WalletViewController.swift */, |
340 | E634A3702823D26E0069DE27 /* GiftsViewController.swift */, | 343 | E634A3702823D26E0069DE27 /* GiftsViewController.swift */, |
341 | E634A3722823D3690069DE27 /* DetailsViewController.swift */, | 344 | E634A3722823D3690069DE27 /* DetailsViewController.swift */, |
... | @@ -757,6 +760,7 @@ | ... | @@ -757,6 +760,7 @@ |
757 | E6D8DF3127A942920006A3A9 /* AFNetworkActivityIndicatorManager.m in Sources */, | 760 | E6D8DF3127A942920006A3A9 /* AFNetworkActivityIndicatorManager.m in Sources */, |
758 | E6D8DF3D27A942920006A3A9 /* AFAutoPurgingImageCache.m in Sources */, | 761 | E6D8DF3D27A942920006A3A9 /* AFAutoPurgingImageCache.m in Sources */, |
759 | E6D8DF0A27A942920006A3A9 /* WLAPSItem.m in Sources */, | 762 | E6D8DF0A27A942920006A3A9 /* WLAPSItem.m in Sources */, |
763 | + 1E7564BC2823FE0B00B9D2AE /* CouponViewController.swift in Sources */, | ||
760 | E6D8DF2C27A942920006A3A9 /* UIProgressView+AFNetworking.m in Sources */, | 764 | E6D8DF2C27A942920006A3A9 /* UIProgressView+AFNetworking.m in Sources */, |
761 | E6D8DF3C27A942920006A3A9 /* UIWebView+AFNetworking.m in Sources */, | 765 | E6D8DF3C27A942920006A3A9 /* UIWebView+AFNetworking.m in Sources */, |
762 | E6D8DF1427A942920006A3A9 /* WLLocationManager.m in Sources */, | 766 | E6D8DF1427A942920006A3A9 /* WLLocationManager.m in Sources */, | ... | ... |
No preview for this file type
1 | +// | ||
2 | +// CouponViewController.swift | ||
3 | +// WarplySDKFrameworkIOS | ||
4 | +// | ||
5 | +// Created by Manos Chorianopoulos on 5/5/22. | ||
6 | +// | ||
7 | + | ||
8 | +import UIKit | ||
9 | + | ||
10 | +class CouponViewController: UIViewController { | ||
11 | + @IBOutlet weak var mainView: UIView! | ||
12 | + @IBOutlet weak var scrollContentView: UIView! | ||
13 | + @IBOutlet weak var couponImageHeight: NSLayoutConstraint! | ||
14 | + @IBOutlet weak var redeemButton: UIButton! | ||
15 | + @IBOutlet weak var termsLabel: UILabel! | ||
16 | + | ||
17 | + let uiscreen: CGRect = UIScreen.main.bounds | ||
18 | + | ||
19 | + override func viewDidLoad() { | ||
20 | + super.viewDidLoad() | ||
21 | + | ||
22 | + // Do any additional setup after loading the view. | ||
23 | + setBackButton() | ||
24 | + setNavigationTitle("Εκπτωτικό κουπόνι") | ||
25 | + | ||
26 | + mainView.clipsToBounds = true | ||
27 | + mainView.layer.cornerRadius = 30 | ||
28 | + mainView.layer.maskedCorners = [ .layerMinXMinYCorner] // Top left corner radius | ||
29 | + | ||
30 | + couponImageHeight.constant = self.uiscreen.height * 0.25 | ||
31 | + | ||
32 | + redeemButton.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .medium) | ||
33 | + | ||
34 | + termsLabel.font = UIFont.systemFont(ofSize: 14, weight: UIFont.Weight.medium) | ||
35 | + let tap = UITapGestureRecognizer(target: self, action: #selector(CouponViewController.termsTapFunction)) | ||
36 | + termsLabel.isUserInteractionEnabled = true | ||
37 | + termsLabel.addGestureRecognizer(tap) | ||
38 | + } | ||
39 | + | ||
40 | + | ||
41 | + // MARK: - Actions | ||
42 | + | ||
43 | + @objc func termsTapFunction(sender:UITapGestureRecognizer) { | ||
44 | + print("Terms tapped!") | ||
45 | + } | ||
46 | + | ||
47 | + @IBAction func redeemButtomAction(_ sender: Any) { | ||
48 | + print("redeem Buttom Pressed!") | ||
49 | + } | ||
50 | +} | ||
51 | + |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment