The Composable Architecture (скорочено TCA) - це бібліотека для побудови додатків у послідовному та зрозумілому підході з урахуванням композиції, тестування та ергономіки. Вона може бути в
This file contains 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
enum MediaLibrary {} | |
// MARK: - ViewModel | |
extension MediaLibrary { | |
final class ViewModel { | |
let progressCompletionThreshold: Double | |
var zoomPosition: ZoomPosition, | |
assetsCount: Int, | |
_zoomStatus: ZoomType? |
This file contains 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
class RenderView: UIView { | |
private var renderLayer: CALayer? | |
func update(renderLayer: CALayer) { | |
self.renderLayer = renderLayer | |
} | |
override func draw(_ rect: CGRect) { | |
guard let renderLayer = renderLayer, |
This file contains 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 Cocoa | |
// MARK: - Protocols definition and syntax (2 slide) | |
// Declaration: | |
protocol SomeProtocol { | |
// protocol definition goes here | |
} | |
class Superclass {} | |
protocol ProtocolOne {} |