Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning iOS UI Development

You're reading from   Learning iOS UI Development Implement complex iOS user interfaces with ease using Swift

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781785288197
Length 196 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Table of Contents (11) Chapters Close

Working with Dynamic Type


With the introduction of iOS 7, the way we work with text has greatly improved. The whole iOS structure has been refined to make it easier for us to complete complex tasks with the help of an easier-to-use framework: Text Kit. The main controls based on text, such as UILabel, UITextField, and UITextView are defined at the top of Text Kit.

Before iOS 7, the only way to handle text layout was working with Web views or text core, a really complex framework that is still at the base of the text drawing. Fortunately, thanks to Text Kit, you are much less likely to work directly with it now.

We won't explore Text Kit in detail here, but we will definitely talk about one of its features that is closely related to adaptive layouts: Dynamic Types.

Configurable text size

Before diving into Dynamic Types, it is important to talk about text sizes, a new option that iOS users can access via their device settings.

This feature has received a lot of support from Apple since its introduction...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime