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-10 17:17:18 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8d89813326052f27f174e71c2d6558cafb1f0388
8d898133
1 parent
7ef01dbf
redesign GFY
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
39 additions
and
34 deletions
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/GiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/InboxTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
8d89813
...
...
@@ -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 @
8d89813
...
...
@@ -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 @
8d89813
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
8d89813
...
...
@@ -69,24 +69,24 @@ import SwiftEventBus
// mainView.clipsToBounds = true
// mainView.layer.cornerRadius = 30
// mainView.layer.maskedCorners = [ .layerMinXMinYCorner] // Top left corner radius
mainView
.
backgroundColor
=
UIColor
(
red
:
0.
22
,
green
:
0.32
,
blue
:
0.40
,
alpha
:
1.00
)
mainView
.
backgroundColor
=
UIColor
(
red
:
0.
95
,
green
:
0.95
,
blue
:
0.95
,
alpha
:
1.00
)
let
image
=
UIImage
(
named
:
"top_border_shadow"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
!
var
aspectR
:
CGFloat
=
0.0
aspectR
=
image
.
size
.
width
/
image
.
size
.
height
topBorderShadow
.
translatesAutoresizingMaskIntoConstraints
=
false
topBorderShadow
.
image
=
image
topBorderShadow
.
contentMode
=
.
scaleAspectFill
NSLayoutConstraint
.
activate
([
topBorderShadow
.
topAnchor
.
constraint
(
equalTo
:
mainView
.
topAnchor
,
constant
:
0
),
topBorderShadow
.
leadingAnchor
.
constraint
(
equalTo
:
mainView
.
leadingAnchor
,
constant
:
0
),
topBorderShadow
.
trailingAnchor
.
constraint
(
equalTo
:
mainView
.
trailingAnchor
,
constant
:
0
),
topBorderShadow
.
widthAnchor
.
constraint
(
equalToConstant
:
UIScreen
.
main
.
bounds
.
width
),
topBorderShadow
.
heightAnchor
.
constraint
(
equalTo
:
topBorderShadow
.
widthAnchor
,
multiplier
:
1
/
aspectR
)
])
//
let image = UIImage(named: "top_border_shadow", in: MyEmptyClass.resourceBundle(), compatibleWith: nil)!
//
var aspectR: CGFloat = 0.0
//
//
aspectR = image.size.width/image.size.height
//
//
topBorderShadow.translatesAutoresizingMaskIntoConstraints = false
//
topBorderShadow.image = image
//
topBorderShadow.contentMode = .scaleAspectFill
//
//
NSLayoutConstraint.activate([
//
topBorderShadow.topAnchor.constraint(equalTo: mainView.topAnchor, constant: 0),
//
topBorderShadow.leadingAnchor.constraint(equalTo: mainView.leadingAnchor, constant: 0),
//
topBorderShadow.trailingAnchor.constraint(equalTo: mainView.trailingAnchor, constant: 0),
//
topBorderShadow.widthAnchor.constraint(equalToConstant: UIScreen.main.bounds.width),
//
topBorderShadow.heightAnchor.constraint(equalTo: topBorderShadow.widthAnchor, multiplier: 1/aspectR)
//
])
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/InboxTableViewCell.swift
View file @
8d89813
...
...
@@ -34,7 +34,7 @@ import UIKit
public
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
inboxView
.
layer
.
cornerRadius
=
5
.0
inboxView
.
layer
.
cornerRadius
=
16
.0
inboxView
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.16
)
.
cgColor
inboxView
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
3.0
)
inboxView
.
layer
.
shadowOpacity
=
1.0
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
8d89813
...
...
@@ -2281,22 +2281,22 @@
<color
key=
"sectionIndexBackgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<prototypes>
<tableViewCell
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
insetsLayoutMarginsFromSafeArea=
"NO"
selectionStyle=
"none"
hidesAccessoryWhenEditing=
"NO"
indentationLevel=
"1"
indentationWidth=
"0.0"
reuseIdentifier=
"InboxTableViewCellId"
id=
"5x6-NG-BBQ"
customClass=
"InboxTableViewCell"
customModule=
"SwiftWarplyFramework"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"50"
width=
"414"
height=
"
79
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"50"
width=
"414"
height=
"
80
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"5x6-NG-BBQ"
id=
"7Ha-bG-aYy"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
79
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"414"
height=
"
80
"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Dwe-Hj-Zch"
>
<rect
key=
"frame"
x=
"20"
y=
"0.0"
width=
"374"
height=
"
79
"
/>
<rect
key=
"frame"
x=
"20"
y=
"0.0"
width=
"374"
height=
"
80
"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"jxX-dy-R3y"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"205.5"
height=
"
79
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"205.5"
height=
"
80
"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"center"
lineBreakMode=
"tailTruncation"
numberOfLines=
"0"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"DIv-Ip-CVk"
>
<rect
key=
"frame"
x=
"215.5"
y=
"30"
width=
"148.5"
height=
"
19
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
FSquareSansPro-Regular"
family=
"PF Square Sans Pro
"
pointSize=
"16"
/>
<color
key=
"textColor"
red=
"0.
22745098039215686"
green=
"0.32156862745098036"
blue=
"0.40000000000000002
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<rect
key=
"frame"
x=
"215.5"
y=
"30"
width=
"148.5"
height=
"
20
"
/>
<fontDescription
key=
"fontDescription"
name=
"P
eridotPE-Regular"
family=
"Peridot PE
"
pointSize=
"16"
/>
<color
key=
"textColor"
red=
"0.
12941176470588234"
green=
"0.12941176470588234"
blue=
"0.12941176470588234
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
...
...
@@ -2346,11 +2346,11 @@
<outlet
property=
"delegate"
destination=
"wy8-hC-CyC"
id=
"mdR-Aj-QGh"
/>
</connections>
</tableView>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
ambiguous=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"NqU-qs-YbE"
>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"NqU-qs-YbE"
>
<rect
key=
"frame"
x=
"0.0"
y=
"420"
width=
"414"
height=
"11.5"
/>
</imageView>
</subviews>
<color
key=
"backgroundColor"
red=
"0.
2196078431372549"
green=
"0.32156862745098036"
blue=
"0.40392156862745099
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<color
key=
"backgroundColor"
red=
"0.
94901960784313721"
green=
"0.94901960784313721"
blue=
"0.95294117647058818
"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstItem=
"Obj-Bh-L89"
firstAttribute=
"top"
secondItem=
"gxz-nY-dFI"
secondAttribute=
"top"
id=
"ECw-Zp-2Tr"
/>
<constraint
firstItem=
"NqU-qs-YbE"
firstAttribute=
"leading"
secondItem=
"gxz-nY-dFI"
secondAttribute=
"leading"
id=
"EOR-Jd-ced"
/>
...
...
@@ -2360,6 +2360,11 @@
<constraint
firstAttribute=
"bottom"
secondItem=
"Obj-Bh-L89"
secondAttribute=
"bottom"
id=
"lop-u2-nwa"
/>
<constraint
firstItem=
"Obj-Bh-L89"
firstAttribute=
"leading"
secondItem=
"gxz-nY-dFI"
secondAttribute=
"leading"
id=
"q6N-T6-U0n"
/>
</constraints>
<variation
key=
"default"
>
<mask
key=
"subviews"
>
<exclude
reference=
"NqU-qs-YbE"
/>
</mask>
</variation>
</view>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"DnC-uL-X1U"
/>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
View file @
8d89813
...
...
@@ -107,22 +107,22 @@ extension UIViewController {
let
titleLabel
=
UILabel
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
uiscreen
.
width
*
0.7
,
height
:
uiscreen
.
height
*
0.03
))
titleLabel
.
text
=
title
titleLabel
.
textColor
=
UIColor
(
red
:
0.
21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
titleLabel
.
textColor
=
UIColor
(
red
:
0.
13
,
green
:
0.13
,
blue
:
0.13
,
alpha
:
1.00
)
// Fix width for ipad
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
if
(
fontWeight
==
"bold"
)
{
titleLabel
.
font
=
UIFont
(
name
:
"
PFSquareSansPr
o-Bold"
,
size
:
20
)
titleLabel
.
font
=
UIFont
(
name
:
"
BTCosm
o-Bold"
,
size
:
20
)
}
else
{
titleLabel
.
font
=
UIFont
(
name
:
"
PFSquareSansPro-Medium
"
,
size
:
20
)
titleLabel
.
font
=
UIFont
(
name
:
"
BTCosmo-Bold
"
,
size
:
20
)
}
}
else
{
// not iPad (iPhone, mac, tv, carPlay, unspecified)
if
(
fontWeight
==
"bold"
)
{
titleLabel
.
font
=
UIFont
(
name
:
"
PFSquareSansPr
o-Bold"
,
size
:
17
)
titleLabel
.
font
=
UIFont
(
name
:
"
BTCosm
o-Bold"
,
size
:
17
)
}
else
{
titleLabel
.
font
=
UIFont
(
name
:
"
PFSquareSansPro-Medium
"
,
size
:
17
)
titleLabel
.
font
=
UIFont
(
name
:
"
BTCosmo-Bold
"
,
size
:
17
)
}
}
titleLabel
.
adjustsFontSizeToFitWidth
=
true
...
...
Please
register
or
login
to post a comment