Playgrounds are great for exploring the Swift language and the APIs available on Apple platforms, but they can also be very useful for experimenting with UI and testing custom views and interfaces. Let's build a very simple bar chart view that we can use to display numerical data in chart form, and use a playground to test it.
All the code for this chapter can be found in a GitHub repository at http://swiftbook.link/code/chapter6.