Showing
4 changed files
with
118 additions
and
47 deletions
... | @@ -177,44 +177,7 @@ | ... | @@ -177,44 +177,7 @@ |
177 | /* End PBXSourcesBuildPhase section */ | 177 | /* End PBXSourcesBuildPhase section */ |
178 | 178 | ||
179 | /* Begin XCBuildConfiguration section */ | 179 | /* Begin XCBuildConfiguration section */ |
180 | - 2FB085E6D4DC89CA0924828582F32C69 /* Debug */ = { | 180 | + 8C3E239946F02EEF0EA8A796F2493F7E /* Release */ = { |
181 | - isa = XCBuildConfiguration; | ||
182 | - baseConfigurationReference = 0AB974C2109C7DBBE55E5D7D226F4EBE /* Pods-SwiftWarplyFramework.debug.xcconfig */; | ||
183 | - buildSettings = { | ||
184 | - ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; | ||
185 | - CLANG_ENABLE_OBJC_WEAK = NO; | ||
186 | - "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | ||
187 | - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | ||
188 | - "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | ||
189 | - CURRENT_PROJECT_VERSION = 1; | ||
190 | - DEFINES_MODULE = YES; | ||
191 | - DYLIB_COMPATIBILITY_VERSION = 1; | ||
192 | - DYLIB_CURRENT_VERSION = 1; | ||
193 | - DYLIB_INSTALL_NAME_BASE = "@rpath"; | ||
194 | - INFOPLIST_FILE = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework-Info.plist"; | ||
195 | - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | ||
196 | - IPHONEOS_DEPLOYMENT_TARGET = 15.4; | ||
197 | - LD_RUNPATH_SEARCH_PATHS = ( | ||
198 | - "$(inherited)", | ||
199 | - "@executable_path/Frameworks", | ||
200 | - "@loader_path/Frameworks", | ||
201 | - ); | ||
202 | - MACH_O_TYPE = staticlib; | ||
203 | - MODULEMAP_FILE = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework.modulemap"; | ||
204 | - OTHER_LDFLAGS = ""; | ||
205 | - OTHER_LIBTOOLFLAGS = ""; | ||
206 | - PODS_ROOT = "$(SRCROOT)"; | ||
207 | - PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; | ||
208 | - PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; | ||
209 | - SDKROOT = iphoneos; | ||
210 | - SKIP_INSTALL = YES; | ||
211 | - TARGETED_DEVICE_FAMILY = "1,2"; | ||
212 | - VERSIONING_SYSTEM = "apple-generic"; | ||
213 | - VERSION_INFO_PREFIX = ""; | ||
214 | - }; | ||
215 | - name = Debug; | ||
216 | - }; | ||
217 | - 586B3BFF50D4BA81FB04AF75C4E6F2EB /* Release */ = { | ||
218 | isa = XCBuildConfiguration; | 181 | isa = XCBuildConfiguration; |
219 | baseConfigurationReference = 9C56DCEAAECE1BF9FFCB6DA961E060A0 /* Pods-SwiftWarplyFramework.release.xcconfig */; | 182 | baseConfigurationReference = 9C56DCEAAECE1BF9FFCB6DA961E060A0 /* Pods-SwiftWarplyFramework.release.xcconfig */; |
220 | buildSettings = { | 183 | buildSettings = { |
... | @@ -230,7 +193,7 @@ | ... | @@ -230,7 +193,7 @@ |
230 | DYLIB_INSTALL_NAME_BASE = "@rpath"; | 193 | DYLIB_INSTALL_NAME_BASE = "@rpath"; |
231 | INFOPLIST_FILE = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework-Info.plist"; | 194 | INFOPLIST_FILE = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework-Info.plist"; |
232 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | 195 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; |
233 | - IPHONEOS_DEPLOYMENT_TARGET = 15.4; | 196 | + IPHONEOS_DEPLOYMENT_TARGET = 11.0; |
234 | LD_RUNPATH_SEARCH_PATHS = ( | 197 | LD_RUNPATH_SEARCH_PATHS = ( |
235 | "$(inherited)", | 198 | "$(inherited)", |
236 | "@executable_path/Frameworks", | 199 | "@executable_path/Frameworks", |
... | @@ -252,7 +215,7 @@ | ... | @@ -252,7 +215,7 @@ |
252 | }; | 215 | }; |
253 | name = Release; | 216 | name = Release; |
254 | }; | 217 | }; |
255 | - 92486E5E72E54FAF60E1A7D022C21B10 /* Release */ = { | 218 | + 903A0004D3E6651EFD5D2E16214D101B /* Release */ = { |
256 | isa = XCBuildConfiguration; | 219 | isa = XCBuildConfiguration; |
257 | buildSettings = { | 220 | buildSettings = { |
258 | ALWAYS_SEARCH_USER_PATHS = NO; | 221 | ALWAYS_SEARCH_USER_PATHS = NO; |
... | @@ -302,7 +265,7 @@ | ... | @@ -302,7 +265,7 @@ |
302 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | 265 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
303 | GCC_WARN_UNUSED_FUNCTION = YES; | 266 | GCC_WARN_UNUSED_FUNCTION = YES; |
304 | GCC_WARN_UNUSED_VARIABLE = YES; | 267 | GCC_WARN_UNUSED_VARIABLE = YES; |
305 | - IPHONEOS_DEPLOYMENT_TARGET = 15.4; | 268 | + IPHONEOS_DEPLOYMENT_TARGET = 11.0; |
306 | MTL_ENABLE_DEBUG_INFO = NO; | 269 | MTL_ENABLE_DEBUG_INFO = NO; |
307 | MTL_FAST_MATH = YES; | 270 | MTL_FAST_MATH = YES; |
308 | PRODUCT_NAME = "$(TARGET_NAME)"; | 271 | PRODUCT_NAME = "$(TARGET_NAME)"; |
... | @@ -314,7 +277,7 @@ | ... | @@ -314,7 +277,7 @@ |
314 | }; | 277 | }; |
315 | name = Release; | 278 | name = Release; |
316 | }; | 279 | }; |
317 | - 934ED2B84836A780113D1F63484628B2 /* Debug */ = { | 280 | + B4EFE046ACF8F37157F6E322C7FCFC28 /* Debug */ = { |
318 | isa = XCBuildConfiguration; | 281 | isa = XCBuildConfiguration; |
319 | buildSettings = { | 282 | buildSettings = { |
320 | ALWAYS_SEARCH_USER_PATHS = NO; | 283 | ALWAYS_SEARCH_USER_PATHS = NO; |
... | @@ -367,7 +330,7 @@ | ... | @@ -367,7 +330,7 @@ |
367 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | 330 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; |
368 | GCC_WARN_UNUSED_FUNCTION = YES; | 331 | GCC_WARN_UNUSED_FUNCTION = YES; |
369 | GCC_WARN_UNUSED_VARIABLE = YES; | 332 | GCC_WARN_UNUSED_VARIABLE = YES; |
370 | - IPHONEOS_DEPLOYMENT_TARGET = 15.4; | 333 | + IPHONEOS_DEPLOYMENT_TARGET = 11.0; |
371 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; | 334 | MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; |
372 | MTL_FAST_MATH = YES; | 335 | MTL_FAST_MATH = YES; |
373 | ONLY_ACTIVE_ARCH = YES; | 336 | ONLY_ACTIVE_ARCH = YES; |
... | @@ -380,14 +343,51 @@ | ... | @@ -380,14 +343,51 @@ |
380 | }; | 343 | }; |
381 | name = Debug; | 344 | name = Debug; |
382 | }; | 345 | }; |
346 | + D25A872A3923E080CEE85E5E489F52F1 /* Debug */ = { | ||
347 | + isa = XCBuildConfiguration; | ||
348 | + baseConfigurationReference = 0AB974C2109C7DBBE55E5D7D226F4EBE /* Pods-SwiftWarplyFramework.debug.xcconfig */; | ||
349 | + buildSettings = { | ||
350 | + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO; | ||
351 | + CLANG_ENABLE_OBJC_WEAK = NO; | ||
352 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = ""; | ||
353 | + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = ""; | ||
354 | + "CODE_SIGN_IDENTITY[sdk=watchos*]" = ""; | ||
355 | + CURRENT_PROJECT_VERSION = 1; | ||
356 | + DEFINES_MODULE = YES; | ||
357 | + DYLIB_COMPATIBILITY_VERSION = 1; | ||
358 | + DYLIB_CURRENT_VERSION = 1; | ||
359 | + DYLIB_INSTALL_NAME_BASE = "@rpath"; | ||
360 | + INFOPLIST_FILE = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework-Info.plist"; | ||
361 | + INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; | ||
362 | + IPHONEOS_DEPLOYMENT_TARGET = 11.0; | ||
363 | + LD_RUNPATH_SEARCH_PATHS = ( | ||
364 | + "$(inherited)", | ||
365 | + "@executable_path/Frameworks", | ||
366 | + "@loader_path/Frameworks", | ||
367 | + ); | ||
368 | + MACH_O_TYPE = staticlib; | ||
369 | + MODULEMAP_FILE = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework.modulemap"; | ||
370 | + OTHER_LDFLAGS = ""; | ||
371 | + OTHER_LIBTOOLFLAGS = ""; | ||
372 | + PODS_ROOT = "$(SRCROOT)"; | ||
373 | + PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.${PRODUCT_NAME:rfc1034identifier}"; | ||
374 | + PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)"; | ||
375 | + SDKROOT = iphoneos; | ||
376 | + SKIP_INSTALL = YES; | ||
377 | + TARGETED_DEVICE_FAMILY = "1,2"; | ||
378 | + VERSIONING_SYSTEM = "apple-generic"; | ||
379 | + VERSION_INFO_PREFIX = ""; | ||
380 | + }; | ||
381 | + name = Debug; | ||
382 | + }; | ||
383 | /* End XCBuildConfiguration section */ | 383 | /* End XCBuildConfiguration section */ |
384 | 384 | ||
385 | /* Begin XCConfigurationList section */ | 385 | /* Begin XCConfigurationList section */ |
386 | 0FEBE74A1ACE6D0CCBD55530A22DA04D /* Build configuration list for PBXNativeTarget "Pods-SwiftWarplyFramework" */ = { | 386 | 0FEBE74A1ACE6D0CCBD55530A22DA04D /* Build configuration list for PBXNativeTarget "Pods-SwiftWarplyFramework" */ = { |
387 | isa = XCConfigurationList; | 387 | isa = XCConfigurationList; |
388 | buildConfigurations = ( | 388 | buildConfigurations = ( |
389 | - 2FB085E6D4DC89CA0924828582F32C69 /* Debug */, | 389 | + D25A872A3923E080CEE85E5E489F52F1 /* Debug */, |
390 | - 586B3BFF50D4BA81FB04AF75C4E6F2EB /* Release */, | 390 | + 8C3E239946F02EEF0EA8A796F2493F7E /* Release */, |
391 | ); | 391 | ); |
392 | defaultConfigurationIsVisible = 0; | 392 | defaultConfigurationIsVisible = 0; |
393 | defaultConfigurationName = Release; | 393 | defaultConfigurationName = Release; |
... | @@ -395,8 +395,8 @@ | ... | @@ -395,8 +395,8 @@ |
395 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { | 395 | 4821239608C13582E20E6DA73FD5F1F9 /* Build configuration list for PBXProject "Pods" */ = { |
396 | isa = XCConfigurationList; | 396 | isa = XCConfigurationList; |
397 | buildConfigurations = ( | 397 | buildConfigurations = ( |
398 | - 934ED2B84836A780113D1F63484628B2 /* Debug */, | 398 | + B4EFE046ACF8F37157F6E322C7FCFC28 /* Debug */, |
399 | - 92486E5E72E54FAF60E1A7D022C21B10 /* Release */, | 399 | + 903A0004D3E6651EFD5D2E16214D101B /* Release */, |
400 | ); | 400 | ); |
401 | defaultConfigurationIsVisible = 0; | 401 | defaultConfigurationIsVisible = 0; |
402 | defaultConfigurationName = Release; | 402 | defaultConfigurationName = Release; | ... | ... |
... | @@ -19,6 +19,7 @@ | ... | @@ -19,6 +19,7 @@ |
19 | 1EBE97212865EE460080EFF7 /* MFYInboxTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EBE97202865EE460080EFF7 /* MFYInboxTableViewCell.swift */; }; | 19 | 1EBE97212865EE460080EFF7 /* MFYInboxTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1EBE97202865EE460080EFF7 /* MFYInboxTableViewCell.swift */; }; |
20 | 1EBF5F072840E13F00B8B17F /* SwiftEventBus in Frameworks */ = {isa = PBXBuildFile; productRef = 1EBF5F062840E13F00B8B17F /* SwiftEventBus */; }; | 20 | 1EBF5F072840E13F00B8B17F /* SwiftEventBus in Frameworks */ = {isa = PBXBuildFile; productRef = 1EBF5F062840E13F00B8B17F /* SwiftEventBus */; }; |
21 | 7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D5F56DD4E5371A50AD2D87 /* Pods_SwiftWarplyFramework.framework */; }; | 21 | 7630AD9A6242D60846D6750C /* Pods_SwiftWarplyFramework.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = C0D5F56DD4E5371A50AD2D87 /* Pods_SwiftWarplyFramework.framework */; }; |
22 | + A02F34052882B6E60086465F /* TelcoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = A02F34042882B6E60086465F /* TelcoViewController.swift */; }; | ||
22 | E6A77853282933340045BBA8 /* SwiftWarplyFramework.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6A77852282933340045BBA8 /* SwiftWarplyFramework.docc */; }; | 23 | E6A77853282933340045BBA8 /* SwiftWarplyFramework.docc in Sources */ = {isa = PBXBuildFile; fileRef = E6A77852282933340045BBA8 /* SwiftWarplyFramework.docc */; }; |
23 | E6A77854282933340045BBA8 /* SwiftWarplyFramework.h in Headers */ = {isa = PBXBuildFile; fileRef = E6A77851282933340045BBA8 /* SwiftWarplyFramework.h */; settings = {ATTRIBUTES = (Public, ); }; }; | 24 | E6A77854282933340045BBA8 /* SwiftWarplyFramework.h in Headers */ = {isa = PBXBuildFile; fileRef = E6A77851282933340045BBA8 /* SwiftWarplyFramework.h */; settings = {ATTRIBUTES = (Public, ); }; }; |
24 | E6A778DF282933E60045BBA8 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6A7785B282933E40045BBA8 /* WarplyReactMethods.m */; }; | 25 | E6A778DF282933E60045BBA8 /* WarplyReactMethods.m in Sources */ = {isa = PBXBuildFile; fileRef = E6A7785B282933E40045BBA8 /* WarplyReactMethods.m */; }; |
... | @@ -157,6 +158,7 @@ | ... | @@ -157,6 +158,7 @@ |
157 | 1EB5F4C728536FD60016F36E /* StepsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StepsViewController.swift; sourceTree = "<group>"; }; | 158 | 1EB5F4C728536FD60016F36E /* StepsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StepsViewController.swift; sourceTree = "<group>"; }; |
158 | 1EB5F4C9285370C90016F36E /* LoyaltyAnalysisViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoyaltyAnalysisViewController.swift; sourceTree = "<group>"; }; | 159 | 1EB5F4C9285370C90016F36E /* LoyaltyAnalysisViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoyaltyAnalysisViewController.swift; sourceTree = "<group>"; }; |
159 | 1EBE97202865EE460080EFF7 /* MFYInboxTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFYInboxTableViewCell.swift; sourceTree = "<group>"; }; | 160 | 1EBE97202865EE460080EFF7 /* MFYInboxTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MFYInboxTableViewCell.swift; sourceTree = "<group>"; }; |
161 | + A02F34042882B6E60086465F /* TelcoViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TelcoViewController.swift; sourceTree = "<group>"; }; | ||
160 | A9B7BE01A4E812DE49866EF8 /* Pods-SwiftWarplyFramework.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftWarplyFramework.debug.xcconfig"; path = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework.debug.xcconfig"; sourceTree = "<group>"; }; | 162 | A9B7BE01A4E812DE49866EF8 /* Pods-SwiftWarplyFramework.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftWarplyFramework.debug.xcconfig"; path = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework.debug.xcconfig"; sourceTree = "<group>"; }; |
161 | B9EB8A451EF0C5AD75094EEE /* Pods-SwiftWarplyFramework.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftWarplyFramework.release.xcconfig"; path = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework.release.xcconfig"; sourceTree = "<group>"; }; | 163 | B9EB8A451EF0C5AD75094EEE /* Pods-SwiftWarplyFramework.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SwiftWarplyFramework.release.xcconfig"; path = "Target Support Files/Pods-SwiftWarplyFramework/Pods-SwiftWarplyFramework.release.xcconfig"; sourceTree = "<group>"; }; |
162 | C0D5F56DD4E5371A50AD2D87 /* Pods_SwiftWarplyFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftWarplyFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; | 164 | C0D5F56DD4E5371A50AD2D87 /* Pods_SwiftWarplyFramework.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_SwiftWarplyFramework.framework; sourceTree = BUILT_PRODUCTS_DIR; }; |
... | @@ -341,6 +343,7 @@ | ... | @@ -341,6 +343,7 @@ |
341 | E6A77850282933340045BBA8 /* SwiftWarplyFramework */ = { | 343 | E6A77850282933340045BBA8 /* SwiftWarplyFramework */ = { |
342 | isa = PBXGroup; | 344 | isa = PBXGroup; |
343 | children = ( | 345 | children = ( |
346 | + A02F34042882B6E60086465F /* TelcoViewController.swift */, | ||
344 | E6A7785E282933E40045BBA8 /* CouponsViewController.swift */, | 347 | E6A7785E282933E40045BBA8 /* CouponsViewController.swift */, |
345 | 1EA1AF092835346A008998AA /* CouponsTableViewCell.swift */, | 348 | 1EA1AF092835346A008998AA /* CouponsTableViewCell.swift */, |
346 | E6A7785D282933E40045BBA8 /* CouponViewController.swift */, | 349 | E6A7785D282933E40045BBA8 /* CouponViewController.swift */, |
... | @@ -765,6 +768,7 @@ | ... | @@ -765,6 +768,7 @@ |
765 | E6A7791E282933E60045BBA8 /* WLSMSActionHanlder.m in Sources */, | 768 | E6A7791E282933E60045BBA8 /* WLSMSActionHanlder.m in Sources */, |
766 | E6A778F5282933E60045BBA8 /* WLCustomNativeAdTableViewCell.m in Sources */, | 769 | E6A778F5282933E60045BBA8 /* WLCustomNativeAdTableViewCell.m in Sources */, |
767 | 1EB5F4C828536FD60016F36E /* StepsViewController.swift in Sources */, | 770 | 1EB5F4C828536FD60016F36E /* StepsViewController.swift in Sources */, |
771 | + A02F34052882B6E60086465F /* TelcoViewController.swift in Sources */, | ||
768 | E6A77901282933E60045BBA8 /* WLBaseItem.m in Sources */, | 772 | E6A77901282933E60045BBA8 /* WLBaseItem.m in Sources */, |
769 | 1E74838D28378AF40042A589 /* CouponBarcodeViewController.swift in Sources */, | 773 | 1E74838D28378AF40042A589 /* CouponBarcodeViewController.swift in Sources */, |
770 | E6A778F0282933E60045BBA8 /* WLNativeAdsCollectionMode.m in Sources */, | 774 | E6A778F0282933E60045BBA8 /* WLNativeAdsCollectionMode.m in Sources */, | ... | ... |
This diff is collapsed. Click to expand it.
1 | +// | ||
2 | +// TelcoViewController.swift | ||
3 | +// WarplySDKFrameworkIOS | ||
4 | +// | ||
5 | +// Created by Manos Chorianopoulos on 16/7/22. | ||
6 | +// | ||
7 | + | ||
8 | +import UIKit | ||
9 | + | ||
10 | +@objc public class TelcoViewController: UIViewController { | ||
11 | + @IBOutlet weak var mainView: UIView! | ||
12 | + @IBOutlet weak var scrollView: UIScrollView! | ||
13 | + @IBOutlet weak var scrollContentView: UIView! | ||
14 | + @IBOutlet weak var heroImage: UIImageView! | ||
15 | + @IBOutlet weak var heroImageHeight: NSLayoutConstraint! | ||
16 | + @IBOutlet weak var nameLabel: UILabel! | ||
17 | + @IBOutlet weak var descriptionLabel: UILabel! | ||
18 | + @IBOutlet weak var activateButton: UIButton! | ||
19 | + | ||
20 | + let uiscreen: CGRect = UIScreen.main.bounds | ||
21 | + | ||
22 | + // TODO: modify this | ||
23 | + public var couponset: swiftApi.CouponSetItemModel? | ||
24 | + | ||
25 | + public override func viewDidLoad() { | ||
26 | + | ||
27 | + super.viewDidLoad() | ||
28 | + | ||
29 | + self.hidesBottomBarWhenPushed = true | ||
30 | + | ||
31 | + // Do any additional setup after loading the view. | ||
32 | + setBackButton() | ||
33 | + setNavigationTitle("Ενεργοποίηση") | ||
34 | + | ||
35 | + scrollView.clipsToBounds = true | ||
36 | + scrollView.layer.cornerRadius = 30 | ||
37 | + scrollView.layer.maskedCorners = [ .layerMinXMinYCorner] // Top left corner radius | ||
38 | + | ||
39 | + heroImage.load(link: couponset?.img_preview ?? "", placeholder: UIImage(), cache: URLCache()) | ||
40 | + heroImage.contentMode = .scaleAspectFill | ||
41 | + heroImageHeight.constant = self.uiscreen.height * 0.25 | ||
42 | + | ||
43 | + nameLabel.text = couponset?.name ?? "" | ||
44 | + descriptionLabel.text = couponset?.short_description ?? "" | ||
45 | + | ||
46 | + activateButton.titleLabel?.font = UIFont.systemFont(ofSize: 15, weight: .semibold) | ||
47 | + activateButton.setTitle("Ενεργοποίηση", for: .normal) | ||
48 | + activateButton.setTitleColor(.white, for: .normal) | ||
49 | + activateButton.backgroundColor = UIColor(red: 0.47, green: 0.75, blue: 0.08, alpha: 1.00) | ||
50 | + activateButton.layer.cornerRadius = 12.0 | ||
51 | + } | ||
52 | + | ||
53 | + // MARK: - Functions | ||
54 | + func activateSetRequest(uuid: String) { | ||
55 | + assertionFailure("to be implemented") | ||
56 | + } | ||
57 | + | ||
58 | + func activateSetCallback (_ response: swiftApi.GenericResponseModel?) -> Void { | ||
59 | + assertionFailure("to be implemented") | ||
60 | + } | ||
61 | + | ||
62 | + // MARK: - Actions | ||
63 | + @IBAction func activateButtomAction(_ sender: Any) { | ||
64 | + activateSetRequest(uuid: couponset?.uuid ?? "") | ||
65 | + } | ||
66 | +} | ||
67 | + |
-
Please register or login to post a comment