This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import PlaygroundSupport | |
/// Simple sample diffable table view to demonstrate using diffable data sources. Approximately 33% of the time, it should show "bad weather" UI instead of apples and oranges | |
final class DiffableCollectionViewController : UIViewController { | |
var collectionView: UICollectionView! | |
enum Section: String, CaseIterable, Hashable { | |
case apples = "Apples" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import PlaygroundSupport | |
/// Simple sample diffable table view to demonstrate using diffable data sources. Approximately 33% of the time, it should show "bad weather" UI instead of apples and oranges | |
final class DiffableTableViewController : UIViewController { | |
var tableView: UITableView! | |
enum Section: String, CaseIterable, Hashable { | |
case apples = "Apples" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://emptytheory.com/2020/09/29/better-uniform-type-identifiers-with-xcode-12/ | |
import UniformTypeIdentifiers | |
//Show UTType properties for built-in type | |
UTType.pdf.printInfo() | |
//Show properties for looked up type | |
UTType.word.printInfo() | |