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
2024-02-07 18:29:26 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d72111464d41e2bae92c25fe1dc4d7d312edcf73
d7211146
1 parent
9f12e11e
add LoyaltyViewController part1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
11 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/LoyaltyViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
d721114
...
...
@@ -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 @
d721114
...
...
@@ -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 @
d721114
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/LoyaltyViewController.swift
View file @
d721114
...
...
@@ -8,22 +8,38 @@
import
UIKit
@objc
public
class
LoyaltyViewController
:
UIViewController
{
@IBOutlet
weak
var
headerView
:
UIView
!
@IBOutlet
weak
var
closeImage
:
UIImageView
!
@IBOutlet
weak
var
logoImage
:
UIImageView
!
var
selectedScreen
:
String
=
""
var
filtersList
:
Array
<
String
>
=
[
"Όλα"
,
"Σπίτι"
,
"Έξοδος"
,
"Υγεία"
]
var
selectedFilter
:
String
=
"Όλα"
public
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
// Do any additional setup after loading the view.
headerView
.
applyGradient
(
colours
:
[
UIColor
(
rgb
:
0x081748
),
UIColor
(
rgb
:
0x204EAC
)],
gradient
:
GradientOrientation
.
horizontal
,
cornerRadius
:
0.0
)
closeImage
.
image
=
UIImage
(
named
:
"close_btn_white"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
logoImage
.
image
=
UIImage
(
named
:
"epistrofi_logo"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
}
}
/*
// MARK: - Navigation
extension
LoyaltyViewController
:
UICollectionViewDataSource
,
UICollectionViewDelegate
{
public
func
numberOfSections
(
in
collectionView
:
UICollectionView
)
->
Int
{
return
1
}
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
public
func
collectionView
(
_
collectionView
:
UICollectionView
,
numberOfItemsInSection
section
:
Int
)
->
Int
{
return
filtersList
.
count
}
*/
public
func
collectionView
(
_
collectionView
:
UICollectionView
,
cellForItemAt
indexPath
:
IndexPath
)
->
UICollectionViewCell
{
let
cell
=
collectionView
.
dequeueReusableCell
(
withReuseIdentifier
:
"ScreenCollectionViewCellId"
,
for
:
indexPath
)
as!
ScreenCollectionViewCell
// cell.myLabel.text = "ABCD"
return
cell
;
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
d721114
This diff is collapsed. Click to expand it.
Please
register
or
login
to post a comment