If you use Storyboards or Xibs, there is added benefit when the preview of your
custom view is rendered right in Xcode. We can achieve that using @IBDesignable
and @IBInspectable.
@IBInspectable make property
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
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
This tutorial will use all pieces of information we gathered from previous posts
to refactor existing code to RxSwift. I created a base project
[https://github.com/agruchala/RxAPITraining]. Simple iOS application displaying
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,