Book Image

Swift Essentials

By : Alex Blewitt, Bandlem Limited
Book Image

Swift Essentials

By: Alex Blewitt, Bandlem Limited

Overview of this book

Table of Contents (16 chapters)
Swift Essentials
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

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