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-04-13 13:08:57 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b0fa29acab794e76b3e4abda4b9c8cfa40171547
b0fa29ac
1 parent
016a2b0a
redesign WalletVC, CouponsVC
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
9 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
b0fa29a
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/CouponsTableViewCell.swift
View file @
b0fa29a
...
...
@@ -45,7 +45,7 @@ import UIKit
couponBgImage
.
image
=
UIImage
(
named
:
"coupon_bg_2"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
borderView
.
addDashedBorderVertical
(
color
:
UIColor
(
red
:
0.
44
,
green
:
0.44
,
blue
:
0.44
,
alpha
:
1.00
),
width
:
1.0
,
height
:
110.0
)
borderView
.
addDashedBorderVertical
(
color
:
UIColor
(
red
:
0.
62
,
green
:
0.62
,
blue
:
0.61
,
alpha
:
1.00
),
width
:
1.0
,
height
:
110.0
)
}
public
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
b0fa29a
...
...
@@ -25,15 +25,15 @@ import SwiftEventBus
setBackButton
()
setNavigationTitle
(
"Ενεργά κουπόνια"
)
backgroundImage
.
image
=
UIImage
(
named
:
"coupons_scrollview_dark"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
//
backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
clipsToBounds
=
true
tableView
.
layer
.
cornerRadius
=
30
tableView
.
layer
.
maskedCorners
=
[
.
layerMinXMinYCorner
]
// Top left corner radius
tableView
.
contentInset
.
top
=
5
0
//
tableView.clipsToBounds = true
//
tableView.layer.cornerRadius = 30
//
tableView.layer.maskedCorners = [ .layerMinXMinYCorner] // Top left corner radius
tableView
.
contentInset
.
top
=
3
0
}
public
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
...
@@ -83,7 +83,7 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
}
public
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
1
2
0.0
+
8.0
return
1
3
0.0
+
8.0
// return UITableViewAutomaticDimension
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
b0fa29a
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
View file @
b0fa29a
...
...
@@ -193,7 +193,7 @@ extension UIView {
let
lineLayer
=
CAShapeLayer
()
lineLayer
.
strokeColor
=
color
lineLayer
.
lineWidth
=
width
lineLayer
.
lineDashPattern
=
[
5
,
5
]
lineLayer
.
lineDashPattern
=
[
10
,
10
]
let
path
=
CGMutablePath
()
path
.
addLines
(
between
:
[
CGPoint
(
x
:
frameSize
.
width
/
2
,
y
:
0
),
CGPoint
(
x
:
frameSize
.
width
/
2
,
y
:
height
)])
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
b0fa29a
...
...
@@ -741,7 +741,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
}
else
if
(
indexPath
.
section
==
3
)
{
if
(
self
.
coupons
.
count
>
0
)
{
return
1
2
0.0
+
8.0
return
1
3
0.0
+
8.0
}
else
{
return
0.0
}
...
...
Please
register
or
login
to post a comment