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
| // | |
| // FullScreenTransitionManager.swift | |
| // | |
| import Foundation | |
| import UIKit | |
| final class FullScreenTransitionManager: NSObject, UIViewControllerTransitioningDelegate { | |
| private let anchorViewTag: Int | |
| private weak var anchorView: UIView? |
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
| // | |
| // FullScreenAnimationController.swift | |
| // | |
| import Foundation | |
| import UIKit | |
| import TinyConstraints | |
| final class FullScreenAnimationController: NSObject, UIViewControllerAnimatedTransitioning { | |
| fileprivate enum AnimationType { |
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
| // | |
| // TableViewController.swift | |
| // | |
| import UIKit | |
| typealias Octocat = (name: String, imagePath: String) | |
| extension String { | |
| func capitalizeFirstLetter() -> String { |
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
| // | |
| // TableViewCell.swift | |
| // | |
| import UIKit | |
| import TinyConstraints | |
| class TableViewCell: UITableViewCell { | |
| private let octocatNameLabel: UILabel = { | |
| let label = UILabel() |
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
| // | |
| // FullScreenImageViewController.swift | |
| // | |
| import UIKit | |
| import TinyConstraints | |
| class FullScreenImageViewController: UIViewController { | |
| private let octocatImageView: UIImageView = { | |
| let imageView = UIImageView() |
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
| // | |
| // FullScreenImageViewController.swift | |
| // | |
| import UIKit | |
| import TinyConstraints | |
| class FullScreenImageViewController: UIViewController { | |
| private let scrollView: UIScrollView = { | |
| let scrollView = UIScrollView() |
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
| // | |
| // StretchyTableHeaderView.swift | |
| // | |
| import Foundation | |
| import UIKit | |
| import TinyConstraints | |
| class StretchyTableHeaderView: UIView { | |
| internal let contentView: UIView = { |
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
| // | |
| // OctocatTableHeaderView.swift | |
| // | |
| import Foundation | |
| import UIKit | |
| class OctocatTableHeaderView: StretchyTableHeaderView { | |
| // UITableView.tableHeaderView needs a defined height: https://developer.apple.com/documentation/uikit/uitableview/1614904-tableheaderview |
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
| // | |
| // TableViewController.swift | |
| // | |
| import UIKit | |
| typealias Octocat = (name: String, imagePath: String) | |
| extension String { | |
| func capitalizeFirstLetter() -> String { |
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
| // | |
| // printKeychainItems.swift | |
| // | |
| import Security | |
| enum SecClass: String, CaseIterable { | |
| // Available keychain item classes: | |
| // https://developer.apple.com/documentation/security/keychain_services/keychain_items/item_class_keys_and_values#1678477 | |