Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Commit

Permalink
Switch to forEach when reloading a complication
Browse files Browse the repository at this point in the history
  • Loading branch information
andreamazz committed Nov 24, 2015
1 parent 95ed157 commit b6f9a48
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Gulps WatchKit Extension/ComplicationController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ class ComplicationController: NSObject, CLKComplicationDataSource {
func requestedUpdateDidBegin() {
let server = CLKComplicationServer.sharedInstance()

for comp in (server.activeComplications) {
server.reloadTimelineForComplication(comp)
}
server.activeComplications.forEach { server.reloadTimelineForComplication($0) }
}

func getPlaceholderTemplateForComplication(complication: CLKComplication, withHandler handler: (CLKComplicationTemplate?) -> Void) {
Expand Down

0 comments on commit b6f9a48

Please sign in to comment.