Having fun with Today Widget Extensions Part One

Yay! Fun!

Lets kick things off by creating a new XCode project.

Choose single view application
Name it…whatever you like.

Next, add the Application Extension

File -> New -> Target
Today Extension.
Give it a name
Click activate.

Time for some code

Within the didFinishLaunchingWithOptions function is where the customization takes place.
Select both targets
This is all, it will make sense shortly (fingers crossed)
Select the app and the widget under the Target Membership section
Namespaces
import Foundationstruct UserModel {
let name: String
}
CollectionViewCell, created programmatically
TodayViewController

--

--

--

The Geeks Shall Inherit The Earth. Software Engineer. Android | iOS.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Charles E.

Charles E.

The Geeks Shall Inherit The Earth. Software Engineer. Android | iOS.

More from Medium

how to covert sketchApp style “linear-gradient(-45deg, #00CC51 7%, #00CC8F 100%);” to swift?

Introduction to Swift UI

SwiftUI + Combine with MVVM design pattern by designing a login page

UserDefaults Unit testing in iOS