Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Vasilis
2022-04-15 16:11:37 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
560af634cf238d7cb29756238df4cf3874867236
560af634
1 parent
24f6b9fb
experiment with podspec
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
31 additions
and
17 deletions
.DS_Store
WarplySDK
WarplySDKFrameworkIOS.podspec
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/Coupons.swift
.DS_Store
View file @
560af63
No preview for this file type
WarplySDK
@
3e45062a
Subproject commit 3e45062a4b065dcc85dc3b94b10575568c51afd7
WarplySDKFrameworkIOS.podspec
View file @
560af63
...
...
@@ -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
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/billskouras.xcuserdatad/UserInterfaceState.xcuserstate
View file @
560af63
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/Coupons.swift
View file @
560af63
...
...
@@ -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.
}
...
...
Please
register
or
login
to post a comment