Chapter 5. Creating Custom Views in Swift
User interfaces can be built by combining standard views and view controllers through interface builder, storyboard editor, or custom code. However, it will eventually become necessary to break apart a user interface into smaller, reusable, and easier-to-test segments. These are known as custom views.
This chapter will present the following topics:
Customizing table views
Building and laying out custom view subclasses
Drawing graphical views with drawRect
Creating layered graphics with animation