No Image

Swift: Alternative to Default Implementations in Protocols

26th March 2017 admin 0

struct CoffeeBreakSessionViewModel: SessionDisplayable {          private let session: Session     private let dataDefaults: SessionDataDefaults          init?(_ session: Session) {         if session.type == .coffeeBreak {             self.session = […]