Created
April 27, 2018 04:34
-
-
Save pedroortizordep/09bdd4439a5efbba6c9d234940aae7c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func getLocalizableSampleTemplate(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTemplate?) -> Void) { | |
let template = CLKComplicationTemplateModularLargeStandardBody() | |
let beerGlass = UIImage(named: "beer_glass") | |
template.headerImageProvider = | |
CLKImageProvider(onePieceImage: beerGlass!) | |
template.headerTextProvider = CLKSimpleTextProvider(text: "Beer Festival") | |
template.body1TextProvider = CLKSimpleTextProvider(text: "Beer Tasting Schedule") | |
handler(template) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment