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
Manos Chorianopoulos
2022-05-23 12:30:08 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
997bc25c1dddaf9cfa6dac082ab587380ae43e1d
997bc25c
1 parent
ef34d033
bundle fixes
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
14 deletions
SwiftWarplyFramework/.DS_Store
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
SwiftWarplyFramework/.DS_Store
View file @
997bc25
No preview for this file type
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
997bc25
...
...
@@ -7,7 +7,7 @@
<key>
Pods-SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
<integer>
1
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
997bc25
...
...
@@ -7,7 +7,7 @@
<key>
SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
</integer>
<integer>
0
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
997bc25
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
997bc25
...
...
@@ -42,7 +42,7 @@ import AVFoundation
setBackButton
()
setNavigationTitle
(
"Εκπτωτικό κουπόνι"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
)
scrollView
.
clipsToBounds
=
true
scrollView
.
layer
.
cornerRadius
=
30
...
...
@@ -99,12 +99,12 @@ import AVFoundation
let
targetSize
=
CGSize
(
width
:
termsTextView
.
frame
.
width
,
height
:
CGFloat
(
MAXFLOAT
))
termsTextViewHeight
.
constant
=
termsTextView
.
sizeThatFits
(
targetSize
)
.
height
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
),
for
:
.
normal
)
}
else
{
termsTextView
.
isHidden
=
true
termsTextViewHeight
.
constant
=
CGFloat
(
0
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
),
for
:
.
normal
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
997bc25
...
...
@@ -29,7 +29,7 @@ import UIKit
setBackButton
()
setNavigationTitle
(
"Εκπτωτικό κουπόνι"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
)
scrollView
.
clipsToBounds
=
true
scrollView
.
layer
.
cornerRadius
=
30
...
...
@@ -60,12 +60,12 @@ import UIKit
let
targetSize
=
CGSize
(
width
:
termsTextView
.
frame
.
width
,
height
:
CGFloat
(
MAXFLOAT
))
termsTextViewHeight
.
constant
=
termsTextView
.
sizeThatFits
(
targetSize
)
.
height
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
),
for
:
.
normal
)
}
else
{
termsTextView
.
isHidden
=
true
termsTextViewHeight
.
constant
=
CGFloat
(
0
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
),
for
:
.
normal
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
View file @
997bc25
...
...
@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
super
.
awakeFromNib
()
// Initialization code
couponBgImage
.
image
=
UIImage
(
named
:
"coupon_bg"
)
couponBgImage
.
image
=
UIImage
(
named
:
"coupon_bg"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
)
borderView
.
addDashedBorderVertical
(
color
:
UIColor
(
red
:
0.44
,
green
:
0.44
,
blue
:
0.44
,
alpha
:
1.00
),
width
:
1.0
,
height
:
110.0
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
997bc25
...
...
@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
setBackButton
()
setNavigationTitle
(
"Ενεργά κουπόνια"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_dark"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_dark"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
)
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
...
...
@@ -83,10 +83,10 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
// TODO: navigate to CouponBarcode
// let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
// let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as UIViewController
//
self.navigationController?.pushViewController(vc, animated: true)
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponBarcodeViewController"
)
as
UIViewController
vc
.
coupon
=
coupons
[
indexPath
.
row
]
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
997bc25
...
...
@@ -23,6 +23,7 @@ import UIKit
@IBAction
func
navigateToCampaign
(
_
sender
:
Any
)
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CampaignViewController"
)
as
UIViewController
vc
.
campaignUrl
=
"https://www.google.com"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
Please
register
or
login
to post a comment