Open Taehyeon-Kim opened 1 year ago
struct CellRegistration<Cell, Item> where Cell : UICollectionViewCell
// Super class
class Food {
}
// Protocol
protocol Fruit {
var price: Int { get }
}
extension Fruit {
var price: Int {
return 100
}
}
class Apple: Fruit {
func printSelf() {
print("Apple")
}
}
class Banana: Fruit {
}
enum Melon: Fruit {
}
struct Watermelon: Fruit {
}
var fruit: Fruit = Banana()
fruit = Apple()
// fruit = Melon()
print(fruit.price)
print((fruit as! Apple).printSelf())
return cell
tableView.delegate = self
tableView.dataSource = self
UICollectionView
CollectionView APIs
CollectionView APIs(13+)
14+(13을 기반으로 쉽게 사용할 수 있는 기능 업데이트)
iOS13
SwiftUI
UIListContentConfiguration(14+)