Swift

Cleaner inits - ExpressibleBy... protocols

Sometimes structures or classes we create in code can be easily expressed by built-in Swift types. Consider the following code: struct Person { let name: String } let ana = Person(name: "Ana") I

RxSwift course - adding RxSwift extensions to existing code - part 2

To finish our conversion from part 1 [https://arturgruchala.com/rxswift-course-adding-rxswift-extensions-to-existing-code-part-1/] , we will need all changes, available here [https://github.com/agruchala/RxAPITraining/tree/rx]. Collection view Right now we are using old-fashioned

RxSwift course - RxCocoa and UI binding

RxCocoa brings UIKit controls and views to the reactive world. We can access them with .rx on view object. Neary all relevant properties of views have their reactive wrapper: alpha, background color, frame,