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
Swift Cookbook

You're reading from   Swift Cookbook Over 60 proven recipes for developing better iOS applications with Swift 5.3

Arrow left icon
Product type Paperback
Published in Feb 2021
Publisher Packt
ISBN-13 9781839211195
Length 500 pages
Edition 2nd Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Chris Barker Chris Barker
Author Profile Icon Chris Barker
Chris Barker
Keith D. Moon Keith D. Moon
Author Profile Icon Keith D. Moon
Keith D. Moon
Keith Moon Keith Moon
Author Profile Icon Keith Moon
Keith Moon
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Swift Building Blocks 2. Mastering the Building Blocks FREE CHAPTER 3. Data Wrangling with Swift Control Flow 4. Generics, Operators, and Nested Types 5. Beyond the Standard Library 6. Building iOS Apps with Swift 7. Swift Playgrounds 8. Server-Side Swift 9. Performance and Responsiveness in Swift 10. SwiftUI and Combine Framework 11. Using CoreML and Vision in Swift 12. About Packt 13. Other Books You May Enjoy

Multi-page playgrounds

We've discussed how playgrounds can be a great tool for exploring APIs and experimenting with UIs. However, playgrounds can also be used for documenting APIs, and providing rich, linkable content. Swift Playgrounds provides support for rich text formatting in comments and multiple pages of content, and we will explore those features in this recipe.

Getting ready

We will start with the playground we used in the last recipe, which displayed our custom BarChart view. You can get the playground, called EmbeddedSources.playground, from the GitHub repository for this book at https://github.com/PacktPublishing/Swift-Cookbook-Second-Edition/tree/master/Chapter07.

We will use our BarChart view to display the price in US dollars of three different cryptocurrencies over a 6-month period between January 2020 and June 2020. We can show each type of currency on a different playground page.

If you want to know more about cryptocurrencies, you can watch this explanatory video...
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 $19.99/month. Cancel anytime