Before iOS 13, if you wanted to have a vertical collection view with horizontally scrolling sections it required embedding a scroll view inside the collection view cell, passing the model around, handling touch
With iOS 13 Apple introduced a new and very powerful way of creating layouts for UICollectionView - UICollectionViewCompositionalLayout.
The compositional layout uses three types of "building blocks":
- item - describes properties of
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
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,
Here's my first compilation of the most common Swift and iOS interview
questions. There'll be more, so follow me on Twitter
[https://twitter.com/GruchalaArtur] & stay up to date.
Have fun and try