Book Image

Swift Essentials - Second Edition

By : Alex Blewitt
Book Image

Swift Essentials - Second Edition

By: Alex Blewitt

Overview of this book

Swift was considered one of the biggest innovations last year, and certainly with Swift 2 announced at WWDC in 2015, this segment of the developer space will continue to be hot and dominating. This is a fast-paced guide to provide an overview of Swift programming and then walks you through in detail how to write iOS applications. Progress through chapters on custom views, networking, parsing and build a complete application as a Git repository, all by using Swift as the core language
Table of Contents (17 chapters)
Swift Essentials Second Edition
Credits
About the Author
Acknowledgments
About the Reviewer
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 with 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