This course is available as part of the raywenderlich.com Professional subscription. To learn more click here
Pro

SwiftUI Charts for WidgetKit

Mar 2 2021 · Video Course (13 mins) · Advanced

Learn how to use SwiftUI to create a series of different charts, and then how to use WidgetKit to display them on a user’s home screen.

4.7/5 3 Ratings

Version

  • Swift 5, iOS 14, Xcode 12

SwiftUI Charts for WidgetKit

Vertical Bar Chart

2:12 Free

Use a bar chart to graph precipitation in a region in the Smoky Mountains across the timespan of a year.

1

Use a bar chart to graph snowfall in a region in the Smoky Mountains across the timespan of a year.

2

Heat Map

3:17

A heat map graphically represents values using colors, such as purple and blue shades for low temperatures; yellow, orange and red for warmer temperatures.

3

Widgets

2:36

Create a WidgetKit extension and customize the Apple-provided boilerplate code in order to get your chart into a widget!

4

Widgets can support up to three sizes. Use the widget extension code, along with a refactoring of your app code, in order to handle the right ones.

5

Who is this for?

This course is for developers who are familiar with SwiftUI, but haven’t gotten experience using it to create charts, or widgets.

Covered concepts

  • WidgetKit
  • Charts
  • Shapes

Contributors

Comments