Showing
5 changed files
with
27 additions
and
11 deletions
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>0</integer> | 10 | + <integer>1</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
... | @@ -7,7 +7,7 @@ | ... | @@ -7,7 +7,7 @@ |
7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> | 7 | <key>SwiftWarplyFramework.xcscheme_^#shared#^_</key> |
8 | <dict> | 8 | <dict> |
9 | <key>orderHint</key> | 9 | <key>orderHint</key> |
10 | - <integer>1</integer> | 10 | + <integer>0</integer> |
11 | </dict> | 11 | </dict> |
12 | </dict> | 12 | </dict> |
13 | </dict> | 13 | </dict> | ... | ... |
No preview for this file type
... | @@ -8,22 +8,38 @@ | ... | @@ -8,22 +8,38 @@ |
8 | import UIKit | 8 | import UIKit |
9 | 9 | ||
10 | @objc public class LoyaltyViewController: UIViewController { | 10 | @objc public class LoyaltyViewController: UIViewController { |
11 | - | 11 | + @IBOutlet weak var headerView: UIView! |
12 | + @IBOutlet weak var closeImage: UIImageView! | ||
13 | + @IBOutlet weak var logoImage: UIImageView! | ||
14 | + | ||
15 | + var selectedScreen: String = "" | ||
16 | + var filtersList: Array<String> = ["Όλα", "Σπίτι", "Έξοδος", "Υγεία"] | ||
17 | + var selectedFilter: String = "Όλα" | ||
18 | + | ||
12 | public override func viewDidLoad() { | 19 | public override func viewDidLoad() { |
13 | super.viewDidLoad() | 20 | super.viewDidLoad() |
14 | 21 | ||
15 | - // Do any additional setup after loading the view. | 22 | + |
23 | + headerView.applyGradient(colours: [UIColor(rgb: 0x081748), UIColor(rgb: 0x204EAC)], gradient: GradientOrientation.horizontal, cornerRadius: 0.0) | ||
24 | + | ||
25 | + closeImage.image = UIImage(named: "close_btn_white", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
26 | + logoImage.image = UIImage(named: "epistrofi_logo", in: MyEmptyClass.resourceBundle(), compatibleWith: nil) | ||
16 | } | 27 | } |
17 | 28 | ||
29 | +} | ||
18 | 30 | ||
19 | - /* | 31 | +extension LoyaltyViewController: UICollectionViewDataSource,UICollectionViewDelegate { |
20 | - // MARK: - Navigation | 32 | + public func numberOfSections(in collectionView: UICollectionView) -> Int { |
33 | + return 1 | ||
34 | + } | ||
21 | 35 | ||
22 | - // In a storyboard-based application, you will often want to do a little preparation before navigation | 36 | + public func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { |
23 | - override func prepare(for segue: UIStoryboardSegue, sender: Any?) { | 37 | + return filtersList.count |
24 | - // Get the new view controller using segue.destination. | ||
25 | - // Pass the selected object to the new view controller. | ||
26 | } | 38 | } |
27 | - */ | ||
28 | 39 | ||
40 | + public func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { | ||
41 | + let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "ScreenCollectionViewCellId", for: indexPath) as! ScreenCollectionViewCell | ||
42 | +// cell.myLabel.text = "ABCD" | ||
43 | + return cell; | ||
44 | + } | ||
29 | } | 45 | } | ... | ... |
This diff is collapsed. Click to expand it.
-
Please register or login to post a comment