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 13:26:09 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
cfb65013e9c2886ce2af9ce8976d8901a205e91a
cfb65013
1 parent
5c6d56ce
fix image bundles
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
SwiftWarplyFramework/.DS_Store
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 @
cfb6501
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
cfb6501
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponBarcodeViewController.swift
View file @
cfb6501
...
...
@@ -6,7 +6,7 @@
//
import
UIKit
import
WarplySDKFrameworkIOS
//
import WarplySDKFrameworkIOS
import
RSBarcodes_Swift
import
AVFoundation
...
...
@@ -42,7 +42,7 @@ import AVFoundation
setBackButton
()
setNavigationTitle
(
"Εκπτωτικό κουπόνι"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
)
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"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
termsTextView
.
isHidden
=
true
termsTextViewHeight
.
constant
=
CGFloat
(
0
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
cfb6501
...
...
@@ -29,7 +29,7 @@ import UIKit
setBackButton
()
setNavigationTitle
(
"Εκπτωτικό κουπόνι"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_white"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
)
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"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_up_dark.png"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
),
for
:
.
normal
)
}
else
{
termsTextView
.
isHidden
=
true
termsTextViewHeight
.
constant
=
CGFloat
(
0
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
),
for
:
.
normal
)
termsButton
.
setImage
(
UIImage
(
named
:
"ic_down_dark.png"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
),
for
:
.
normal
)
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
View file @
cfb6501
...
...
@@ -7,7 +7,7 @@
import
Foundation
import
UIKit
import
WarplySDKFrameworkIOS
//
import WarplySDKFrameworkIOS
@objc
class
CouponsTableViewCell
:
UITableViewCell
{
@IBOutlet
weak
var
couponBgImage
:
UIImageView
!
...
...
@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
super
.
awakeFromNib
()
// Initialization code
couponBgImage
.
image
=
UIImage
(
named
:
"coupon_bg"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
)
couponBgImage
.
image
=
UIImage
(
named
:
"coupon_bg"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
)
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 @
cfb6501
...
...
@@ -7,7 +7,7 @@
import
Foundation
import
UIKit
import
WarplySDKFrameworkIOS
//
import WarplySDKFrameworkIOS
@objc
public
class
CouponsViewController
:
UIViewController
{
@IBOutlet
weak
var
backgroundImage
:
UIImageView
!
...
...
@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
setBackButton
()
setNavigationTitle
(
"Ενεργά κουπόνια"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_dark"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_dark"
,
in
:
Bundle
(
for
:
MyEmptyClass
.
self
),
compatibleWith
:
nil
)
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
...
...
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
cfb6501
...
...
@@ -22,7 +22,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
UI
ViewController
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CampaignViewController"
)
as
!
Campaign
ViewController
vc
.
campaignUrl
=
"https://www.google.com"
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
Please
register
or
login
to post a comment