Vasilis

experiment with podspec

No preview for this file type
WarplySDK @ 3e45062a
1 +Subproject commit 3e45062a4b065dcc85dc3b94b10575568c51afd7
...@@ -24,6 +24,11 @@ Pod::Spec.new do |spec| ...@@ -24,6 +24,11 @@ Pod::Spec.new do |spec|
24 24
25 spec.resource_bundles = { 25 spec.resource_bundles = {
26 'Resources' => ['WarplySDKFrameworkIOS/*.xcassets', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets'] 26 'Resources' => ['WarplySDKFrameworkIOS/*.xcassets', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets']
27 -} 27 + }
28 + s.preserve_paths = 'WarplySDKFrameworkIOS/myApi.h'
29 + s.vendored_libraries = 'WarplySDKFrameworkIOS/myApi.h'
30 + s.ios.deployment_target = '13.0'
31 + s.frameworks = 'UIKit', 'Foundation'
32 + s.requires_arc = true
28 33
29 end 34 end
......
...@@ -7,6 +7,14 @@ ...@@ -7,6 +7,14 @@
7 7
8 import UIKit 8 import UIKit
9 9
10 +extension UIViewController {
11 +
12 + class func loadController() -> Self {
13 + return Self(nibName: String(describing: self), bundle: nil)
14 + //Or You can use this as well
15 + //Self.init(nibName: String(describing: self), bundle: nil)
16 + }
17 +}
10 18
11 public class Coupons: UIViewController { 19 public class Coupons: UIViewController {
12 20
...@@ -14,22 +22,22 @@ public class Coupons: UIViewController { ...@@ -14,22 +22,22 @@ public class Coupons: UIViewController {
14 22
15 public override func viewDidLoad() { 23 public override func viewDidLoad() {
16 super.viewDidLoad() 24 super.viewDidLoad()
17 - let corners = UIRectCorner(arrayLiteral: [ 25 +// let corners = UIRectCorner(arrayLiteral: [
18 - UIRectCorner.topLeft, 26 +// UIRectCorner.topLeft,
19 - ]) 27 +// ])
20 - let cornerRadii = CGSize( 28 +// let cornerRadii = CGSize(
21 - width: 10, 29 +// width: 10,
22 - height: 10 30 +// height: 10
23 - ) 31 +// )
24 - let maskPath = UIBezierPath( 32 +// let maskPath = UIBezierPath(
25 - roundedRect: view.bounds, 33 +// roundedRect: view.bounds,
26 - byRoundingCorners: corners, 34 +// byRoundingCorners: corners,
27 - cornerRadii: cornerRadii 35 +// cornerRadii: cornerRadii
28 - ) 36 +// )
29 - let maskLayer = CAShapeLayer() 37 +// let maskLayer = CAShapeLayer()
30 - maskLayer.path = maskPath.cgPath 38 +// maskLayer.path = maskPath.cgPath
31 - maskLayer.frame = view.bounds 39 +// maskLayer.frame = view.bounds
32 - myScrollView.layer.mask = maskLayer 40 +// myScrollView.layer.mask = maskLayer
33 // Do any additional setup after loading the view. 41 // Do any additional setup after loading the view.
34 } 42 }
35 43
......