How to make a Today Extension Widget in Swift
We are going to learn how to use the new feature of iOS8: Today Extension (Widget for your notification center screen). We are going to take, as the base project, the one explained here. You will learn:
- How to create a Today Extension in Xcode: Target
- How to use the method widgetPerformUpdateWithCompletionHandler
- How to share data between the Today Extension and the main app
At the end of the post you will have a widget that gets data from its container app. The app gets stock values from Yahoo Finance API and the widgets recovers the last one received from AAPL.