iOS 10 Swift Programming Cookbook by Nahavandipoor Vandad

iOS 10 Swift Programming Cookbook by Nahavandipoor Vandad

Author:Nahavandipoor, Vandad
Language: eng
Format: epub
Publisher: O'Reilly Media
Published: 2016-12-05T05:00:00+00:00


In our example, I want the complication to look like Figure 7-41. The complication shows the next train (a Coastal service) and how many minutes away that train departs.

Figure 7-41. Complication shows that the next train leaves in 25 minutes

When you create your watchOS project, enable only the modular large complication in the target settings (see Figure 7-42).

Figure 7-42. Enable only the modular large complication for this example

Now create your data model. It will be similar to what we did in Recipe 7.8, but this time we want to provide train times. For the train type and the train company, create enumerations:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.