Vasilis

experiment with podspec

No preview for this file type
WarplySDK @ 3e45062a
Subproject commit 3e45062a4b065dcc85dc3b94b10575568c51afd7
......@@ -24,6 +24,11 @@ Pod::Spec.new do |spec|
spec.resource_bundles = {
'Resources' => ['WarplySDKFrameworkIOS/*.xcassets', 'WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/*.xcassets']
}
}
s.preserve_paths = 'WarplySDKFrameworkIOS/myApi.h'
s.vendored_libraries = 'WarplySDKFrameworkIOS/myApi.h'
s.ios.deployment_target = '13.0'
s.frameworks = 'UIKit', 'Foundation'
s.requires_arc = true
end
......
......@@ -7,6 +7,14 @@
import UIKit
extension UIViewController {
class func loadController() -> Self {
return Self(nibName: String(describing: self), bundle: nil)
//Or You can use this as well
//Self.init(nibName: String(describing: self), bundle: nil)
}
}
public class Coupons: UIViewController {
......@@ -14,22 +22,22 @@ public class Coupons: UIViewController {
public override func viewDidLoad() {
super.viewDidLoad()
let corners = UIRectCorner(arrayLiteral: [
UIRectCorner.topLeft,
])
let cornerRadii = CGSize(
width: 10,
height: 10
)
let maskPath = UIBezierPath(
roundedRect: view.bounds,
byRoundingCorners: corners,
cornerRadii: cornerRadii
)
let maskLayer = CAShapeLayer()
maskLayer.path = maskPath.cgPath
maskLayer.frame = view.bounds
myScrollView.layer.mask = maskLayer
// let corners = UIRectCorner(arrayLiteral: [
// UIRectCorner.topLeft,
// ])
// let cornerRadii = CGSize(
// width: 10,
// height: 10
// )
// let maskPath = UIBezierPath(
// roundedRect: view.bounds,
// byRoundingCorners: corners,
// cornerRadii: cornerRadii
// )
// let maskLayer = CAShapeLayer()
// maskLayer.path = maskPath.cgPath
// maskLayer.frame = view.bounds
// myScrollView.layer.mask = maskLayer
// Do any additional setup after loading the view.
}
......