-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTasksCollectionView.swift
49 lines (48 loc) · 1.5 KB
/
TasksCollectionView.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
////
//// TasksCollectionView.swift
//// FirebaseToDo
////
//// Created by Duxxless on 16.03.2022.
////
//
//import UIKit
//
//class TasksCollectionView: UICollectionView, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout {
//
// let cells = ["1","2","3"]
//
// init() {
// let layout = UICollectionViewFlowLayout()
// layout.scrollDirection = .horizontal
// super.init(frame: .zero, collectionViewLayout: layout)
//
// backgroundColor = .systemGreen
// delegate = self
// dataSource = self
//
// register(TasksCollectionViewCell.self, forCellWithReuseIdentifier: TasksCollectionViewCell.identifier)
// }
//
// required init?(coder: NSCoder) {
// fatalError("init(coder:) has not been implemented")
// }
//
//
//
//
//
// func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
// return 5
// }
//
// func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
// let cell = (dequeueReusableCell(withReuseIdentifier: TasksCollectionViewCell.identifier, for: indexPath))
// return cell
// }
//
// func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
// return CGSize(width: 200, height: 200)
// }
//
//}
//