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
2023-10-23 13:53:57 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
eb36db0fb6943fa27d60602876d58e91ecb60669
eb36db0f
1 parent
655f4043
WalletViewController refactor part 1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
eb36db0
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
eb36db0
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
eb36db0
...
...
@@ -14,6 +14,8 @@ import SwiftEventBus
@IBOutlet
weak
var
profileImage
:
UIImageView
!
@IBOutlet
weak
var
profileNameLabel
:
UILabel
!
@IBOutlet
weak
var
questionnaireButton
:
UIButton
!
@IBOutlet
weak
var
historyButtonView
:
UIView
!
@IBOutlet
weak
var
historyButtonImage
:
UIImageView
!
@IBOutlet
weak
var
dfyEarnBannerView
:
UIView
!
@IBOutlet
weak
var
dfyEarnBannerHeight
:
NSLayoutConstraint
!
@IBOutlet
weak
var
dfyEarnBannerTopSpace
:
NSLayoutConstraint
!
...
...
@@ -164,6 +166,7 @@ import SwiftEventBus
}
headerImage
.
image
=
UIImage
(
named
:
"ic_background_straight"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
historyButtonImage
.
image
=
UIImage
(
named
:
"ic_time_forward_blue"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyEarnImage
.
image
=
UIImage
(
named
:
"wallet_dfy_3"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
couponEarnImage
.
image
=
UIImage
(
named
:
"wallet_coupons_4"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyLogoImage
.
image
=
UIImage
(
named
:
"dfy_logo_colored"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
...
...
@@ -216,10 +219,15 @@ import SwiftEventBus
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
42
)
questionnaireButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
12
,
left
:
20
,
bottom
:
12
,
right
:
20
)
questionnaireButton
.
layer
.
cornerRadius
=
1
5
.0
questionnaireButton
.
layer
.
borderWidth
=
2
questionnaireButton
.
layer
.
cornerRadius
=
1
6
.0
questionnaireButton
.
layer
.
borderWidth
=
1
questionnaireButton
.
layer
.
borderColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
.
cgColor
historyButtonView
.
backgroundColor
=
.
clear
historyButtonView
.
layer
.
cornerRadius
=
16.0
historyButtonView
.
layer
.
borderWidth
=
1
historyButtonView
.
layer
.
borderColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
.
cgColor
dfyEarnBannerInnerView
.
layer
.
cornerRadius
=
16.5
// dfyEarnBannerInnerView.layer.borderWidth = 1
// dfyEarnBannerInnerView.layer.borderColor = UIColor(red: 0.90, green: 0.90, blue: 0.90, alpha: 1.00).cgColor
...
...
@@ -538,8 +546,8 @@ import SwiftEventBus
questionnaireButton
.
frame
=
CGRect
(
x
:
0.0
,
y
:
0.0
,
width
:
questionnaireButton
.
intrinsicContentSize
.
width
,
height
:
42
)
questionnaireButton
.
contentEdgeInsets
=
UIEdgeInsets
(
top
:
12
,
left
:
20
,
bottom
:
12
,
right
:
20
)
questionnaireButton
.
layer
.
cornerRadius
=
1
5
.0
questionnaireButton
.
layer
.
borderWidth
=
2
questionnaireButton
.
layer
.
cornerRadius
=
1
6
.0
questionnaireButton
.
layer
.
borderWidth
=
1
questionnaireButton
.
layer
.
borderColor
=
UIColor
(
red
:
0.05
,
green
:
0.65
,
blue
:
0.00
,
alpha
:
1.00
)
.
cgColor
}
...
...
@@ -743,6 +751,11 @@ import SwiftEventBus
swiftApi
()
.
openQuestionnaire
(
self
);
}
@IBAction
func
historyButtonAction
(
_
sender
:
Any
)
{
// TODO: Open new HistoryVC
print
(
"=== historyButton Pressed ==="
)
}
@IBAction
func
dfyEarnButtonAction
(
_
sender
:
Any
)
{
print
(
"DFY coupon banner pressed!"
)
// analysis_pressed event
...
...
Please
register
or
login
to post a comment