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-05 15:59:14 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a8246dc445496dff743c62210fe201f6c85b36b5
a8246dc4
1 parent
20a8dca7
add CouponViewController
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
55 additions
and
0 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcodeproj/project.pbxproj
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponViewController.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/Main.storyboard
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcodeproj/project.pbxproj
View file @
a8246dc
...
...
@@ -8,6 +8,7 @@
/* Begin PBXBuildFile section */
1E7564BA2823C6D900B9D2AE /* ViewControllerExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7564B92823C6D900B9D2AE /* ViewControllerExtensions.swift */; };
1E7564BC2823FE0B00B9D2AE /* CouponViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E7564BB2823FE0B00B9D2AE /* CouponViewController.swift */; };
260C6A1AFF7560C32E212F20 /* Pods_WarplySDKFrameworkIOS.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */; };
E634A369282299770069DE27 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = E634A368282299760069DE27 /* Main.storyboard */; };
E634A36B2822999B0069DE27 /* CouponsViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E634A36A2822999B0069DE27 /* CouponsViewController.swift */; };
...
...
@@ -137,6 +138,7 @@
/* Begin PBXFileReference section */
1353B8C484CC0649CAC2EB74 /* Pods_WarplySDKFrameworkIOS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_WarplySDKFrameworkIOS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
1E7564B92823C6D900B9D2AE /* ViewControllerExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewControllerExtensions.swift; sourceTree = "<group>"; };
1E7564BB2823FE0B00B9D2AE /* CouponViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponViewController.swift; sourceTree = "<group>"; };
B9413513157AD76ECE896B81 /* Pods-WarplySDKFrameworkIOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-WarplySDKFrameworkIOS.release.xcconfig"; path = "Target Support Files/Pods-WarplySDKFrameworkIOS/Pods-WarplySDKFrameworkIOS.release.xcconfig"; sourceTree = "<group>"; };
E634A368282299760069DE27 /* Main.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
E634A36A2822999B0069DE27 /* CouponsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CouponsViewController.swift; sourceTree = "<group>"; };
...
...
@@ -336,6 +338,7 @@
E67D1EC528117F2400940F01 /* swiftApi.swift */,
E634A368282299760069DE27 /* Main.storyboard */,
E634A36A2822999B0069DE27 /* CouponsViewController.swift */,
1E7564BB2823FE0B00B9D2AE /* CouponViewController.swift */,
E634A36E2823D2290069DE27 /* WalletViewController.swift */,
E634A3702823D26E0069DE27 /* GiftsViewController.swift */,
E634A3722823D3690069DE27 /* DetailsViewController.swift */,
...
...
@@ -757,6 +760,7 @@
E6D8DF3127A942920006A3A9 /* AFNetworkActivityIndicatorManager.m in Sources */,
E6D8DF3D27A942920006A3A9 /* AFAutoPurgingImageCache.m in Sources */,
E6D8DF0A27A942920006A3A9 /* WLAPSItem.m in Sources */,
1E7564BC2823FE0B00B9D2AE /* CouponViewController.swift in Sources */,
E6D8DF2C27A942920006A3A9 /* UIProgressView+AFNetworking.m in Sources */,
E6D8DF3C27A942920006A3A9 /* UIWebView+AFNetworking.m in Sources */,
E6D8DF1427A942920006A3A9 /* WLLocationManager.m in Sources */,
...
...
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
a8246dc
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponViewController.swift
0 → 100644
View file @
a8246dc
//
// CouponViewController.swift
// WarplySDKFrameworkIOS
//
// Created by Manos Chorianopoulos on 5/5/22.
//
import
UIKit
class
CouponViewController
:
UIViewController
{
@IBOutlet
weak
var
mainView
:
UIView
!
@IBOutlet
weak
var
scrollContentView
:
UIView
!
@IBOutlet
weak
var
couponImageHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
redeemButton
:
UIButton
!
@IBOutlet
weak
var
termsLabel
:
UILabel
!
let
uiscreen
:
CGRect
=
UIScreen
.
main
.
bounds
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
// Do any additional setup after loading the view.
setBackButton
()
setNavigationTitle
(
"Εκπτωτικό κουπόνι"
)
mainView
.
clipsToBounds
=
true
mainView
.
layer
.
cornerRadius
=
30
mainView
.
layer
.
maskedCorners
=
[
.
layerMinXMinYCorner
]
// Top left corner radius
couponImageHeight
.
constant
=
self
.
uiscreen
.
height
*
0.25
redeemButton
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
15
,
weight
:
.
medium
)
termsLabel
.
font
=
UIFont
.
systemFont
(
ofSize
:
14
,
weight
:
UIFont
.
Weight
.
medium
)
let
tap
=
UITapGestureRecognizer
(
target
:
self
,
action
:
#selector(
CouponViewController.termsTapFunction
)
)
termsLabel
.
isUserInteractionEnabled
=
true
termsLabel
.
addGestureRecognizer
(
tap
)
}
// MARK: - Actions
@objc
func
termsTapFunction
(
sender
:
UITapGestureRecognizer
)
{
print
(
"Terms tapped!"
)
}
@IBAction
func
redeemButtomAction
(
_
sender
:
Any
)
{
print
(
"redeem Buttom Pressed!"
)
}
}
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/Main.storyboard
View file @
a8246dc
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment