From 1e42f50119b7bbb35a2b627e3c44255248d2ef50 Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Wed, 1 Mar 2017 23:29:41 -0600 Subject: [PATCH 1/2] Fix display of utilitarian family --- Loop.xcodeproj/project.pbxproj | 2 + .../Base.lproj/ckcomplication.strings | 6 +-- .../complicationManifest.json | 15 +++--- .../Base.lproj/ckcomplication.strings | 6 +-- .../ComplicationController.swift | 4 +- .../Extensions/CLKComplicationTemplate.swift | 50 ++++++++++++------- WatchApp Extension/Info.plist | 1 + 7 files changed, 50 insertions(+), 34 deletions(-) mode change 100755 => 100644 Loop/gallery.ckcomplication/Base.lproj/ckcomplication.strings diff --git a/Loop.xcodeproj/project.pbxproj b/Loop.xcodeproj/project.pbxproj index 8697f83622..02bc006664 100644 --- a/Loop.xcodeproj/project.pbxproj +++ b/Loop.xcodeproj/project.pbxproj @@ -1742,6 +1742,7 @@ 43A943961B926B7B0051FA24 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = ""; @@ -1759,6 +1760,7 @@ 43A943971B926B7B0051FA24 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + ASSETCATALOG_COMPILER_COMPLICATION_NAME = Complication; CODE_SIGN_IDENTITY = "iPhone Developer"; "CODE_SIGN_IDENTITY[sdk=watchos*]" = "iPhone Developer"; DEVELOPMENT_TEAM = ""; diff --git a/Loop/gallery.ckcomplication/Base.lproj/ckcomplication.strings b/Loop/gallery.ckcomplication/Base.lproj/ckcomplication.strings old mode 100755 new mode 100644 index 7f66681420..742e29ff1f --- a/Loop/gallery.ckcomplication/Base.lproj/ckcomplication.strings +++ b/Loop/gallery.ckcomplication/Base.lproj/ckcomplication.strings @@ -10,7 +10,7 @@ "120↘︎" = "120↘︎"; /* Utilitarian small flat format string (1: Glucose & Trend symbol) (2: Time) */ -"UtilitarianSmallFlat" = "%1@ %2@"; +"UtilitarianSmallFlat" = "%@ %@"; -/* Utilitarian small flat format string (1: Glucose & Trend symbol) (2: Eventual Glucose) (3: Time) */ -"UtilitarianLargeFlat" = "%1@%2@ %3@"; +/* Utilitarian large flat format string (1: Glucose & Trend symbol) (2: Eventual Glucose) (3: Time) */ +"UtilitarianLargeFlat" = "%@%@ %@"; diff --git a/Loop/gallery.ckcomplication/complicationManifest.json b/Loop/gallery.ckcomplication/complicationManifest.json index 1e8834b330..96a0c9d50a 100644 --- a/Loop/gallery.ckcomplication/complicationManifest.json +++ b/Loop/gallery.ckcomplication/complicationManifest.json @@ -1,11 +1,12 @@ { "supported complication families" : { - "3" : "7F209C4B-314F-4875-9072-3CFD6C18AE3A.json", - "1" : "0912322A-F7BA-487C-B910-60ADD3B22910.json", - "6" : "E5D4D16F-B048-454F-BAD4-A1D92E65F650.json", - "4" : "2F588D19-9780-4727-B5CB-DFE7945469E4.json", - "0" : "2A9C2659-183D-468D-A20D-704A6D9F7875.json", - "7" : "1163D5A6-1BB9-41D4-B6A0-60DCDFD52EC3.json" + "7" : "B1F1D9E8-541F-414D-AF5D-780D6B993FD9.json", + "3" : "28F6F412-3A28-4CF6-A184-F6345627D8C8.json", + "4" : "50FD3B5F-03E3-486D-A506-21DC4A3B4857.json", + "0" : "5506FC7B-C7BA-439A-8075-7B1C5DE1114A.json", + "1" : "3902026C-B841-4642-AD7B-1CA80FAC447D.json", + "6" : "30ACFC76-BFF3-4761-9345-5C169460F920.json", + "2" : "7F6C7226-52B7-406D-ACD2-7AB92587CBB4.json" }, - "client ID" : "com.loopkit.Loop.watchkitapp.watchkitextension" + "client ID" : "com.loudnate.Loop.watchkitapp.watchkitextension" } \ No newline at end of file diff --git a/WatchApp Extension/Base.lproj/ckcomplication.strings b/WatchApp Extension/Base.lproj/ckcomplication.strings index 7f66681420..742e29ff1f 100644 --- a/WatchApp Extension/Base.lproj/ckcomplication.strings +++ b/WatchApp Extension/Base.lproj/ckcomplication.strings @@ -10,7 +10,7 @@ "120↘︎" = "120↘︎"; /* Utilitarian small flat format string (1: Glucose & Trend symbol) (2: Time) */ -"UtilitarianSmallFlat" = "%1@ %2@"; +"UtilitarianSmallFlat" = "%@ %@"; -/* Utilitarian small flat format string (1: Glucose & Trend symbol) (2: Eventual Glucose) (3: Time) */ -"UtilitarianLargeFlat" = "%1@%2@ %3@"; +/* Utilitarian large flat format string (1: Glucose & Trend symbol) (2: Eventual Glucose) (3: Time) */ +"UtilitarianLargeFlat" = "%@%@ %@"; diff --git a/WatchApp Extension/ComplicationController.swift b/WatchApp Extension/ComplicationController.swift index d7d5f30952..19bfed9842 100644 --- a/WatchApp Extension/ComplicationController.swift +++ b/WatchApp Extension/ComplicationController.swift @@ -103,7 +103,7 @@ final class ComplicationController: NSObject, CLKComplicationDataSource { extraLarge.line1TextProvider = glucoseText extraLarge.line2TextProvider = timeText template = extraLarge - case .utilitarianSmallFlat: + case .utilitarianSmall, .utilitarianSmallFlat: let utilitarianSmallFlat = CLKComplicationTemplateUtilitarianSmallFlat() utilitarianSmallFlat.textProvider = CLKSimpleTextProvider.localizableTextProvider(withStringsFileFormatKey: "UtilitarianSmallFlat", textProviders: [glucoseText, timeText]) template = utilitarianSmallFlat @@ -112,8 +112,6 @@ final class ComplicationController: NSObject, CLKComplicationDataSource { let eventualGlucoseText = CLKSimpleTextProvider.localizableTextProvider(withStringsFileTextKey: "75") utilitarianLarge.textProvider = CLKSimpleTextProvider.localizableTextProvider(withStringsFileFormatKey: "UtilitarianLargeFlat", textProviders: [glucoseText, eventualGlucoseText, timeText]) template = utilitarianLarge - default: - template = nil } template?.tintColor = UIColor.tintColor diff --git a/WatchApp Extension/Extensions/CLKComplicationTemplate.swift b/WatchApp Extension/Extensions/CLKComplicationTemplate.swift index a4acf587b3..696441cd65 100644 --- a/WatchApp Extension/Extensions/CLKComplicationTemplate.swift +++ b/WatchApp Extension/Extensions/CLKComplicationTemplate.swift @@ -30,54 +30,68 @@ extension CLKComplicationTemplate { var glucoseStrings = [glucoseString] var accessibilityStrings = [glucoseString] - var eventualGlucoseText: CLKSimpleTextProvider? if let trend = context.glucoseTrend { glucoseStrings.append(trend.symbol) accessibilityStrings.append(trend.localizedDescription) } - if let eventualGlucose = context.eventualGlucose, - let eventualGlucoseString = formatter.string(from: NSNumber(value: eventualGlucose.doubleValue(for: unit))) - { - eventualGlucoseText = CLKSimpleTextProvider(text: eventualGlucoseString) - } - - let glucoseText = CLKSimpleTextProvider(text: glucoseStrings.joined(), shortText: glucoseString, accessibilityLabel: accessibilityStrings.joined(separator: ", ")) + let glucoseAndTrendText = CLKSimpleTextProvider(text: glucoseStrings.joined(), shortText: glucoseString, accessibilityLabel: accessibilityStrings.joined(separator: ", ")) let timeText = CLKRelativeDateTextProvider(date: date, style: .natural, units: .minute) + let timeFormatter = DateFormatter() + timeFormatter.dateStyle = .none + timeFormatter.timeStyle = .short + switch family { case .modularSmall: let template = CLKComplicationTemplateModularSmallStackText() - template.line1TextProvider = glucoseText + template.line1TextProvider = glucoseAndTrendText template.line2TextProvider = timeText return template case .modularLarge: let template = CLKComplicationTemplateModularLargeTallBody() - template.bodyTextProvider = glucoseText + template.bodyTextProvider = glucoseAndTrendText template.headerTextProvider = timeText return template case .circularSmall: let template = CLKComplicationTemplateCircularSmallSimpleText() - template.textProvider = glucoseText + template.textProvider = CLKSimpleTextProvider(text: glucoseString) return template case .extraLarge: let template = CLKComplicationTemplateExtraLargeStackText() - template.line1TextProvider = glucoseText + template.line1TextProvider = glucoseAndTrendText template.line2TextProvider = timeText return template - case .utilitarianSmallFlat: + case .utilitarianSmall, .utilitarianSmallFlat: let template = CLKComplicationTemplateUtilitarianSmallFlat() - template.textProvider = CLKSimpleTextProvider.localizableTextProvider(withStringsFileFormatKey: "UtilitarianSmallFlat", textProviders: [glucoseText, timeText]) + let format = NSLocalizedString("UtilitarianSmallFlat", tableName: "ckcomplication", comment: "Utilitarian small flat format string (1: Glucose & Trend symbol) (2: Time)") + + template.textProvider = CLKSimpleTextProvider(text: String(format: format, arguments: [ + glucoseString, + timeFormatter.string(from: date) + ] + )) + return template case .utilitarianLarge: + var eventualGlucoseText = "" + if let eventualGlucose = context.eventualGlucose, + let eventualGlucoseString = formatter.string(from: NSNumber(value: eventualGlucose.doubleValue(for: unit))) + { + eventualGlucoseText = eventualGlucoseString + } + let template = CLKComplicationTemplateUtilitarianLargeFlat() - let providers: [CLKTextProvider?] = [glucoseText, eventualGlucoseText, timeText] + let format = NSLocalizedString("UtilitarianLargeFlat", tableName: "ckcomplication", comment: "Utilitarian large flat format string (1: Glucose & Trend symbol) (2: Eventual Glucose) (3: Time)") - template.textProvider = CLKSimpleTextProvider.localizableTextProvider(withStringsFileFormatKey: "UtilitarianLargeFlat", textProviders: providers.flatMap({ $0 })) + template.textProvider = CLKSimpleTextProvider(text: String(format: format, arguments: [ + glucoseStrings.joined(), + eventualGlucoseText, + timeFormatter.string(from: date) + ] + )) return template - default: - return nil } } } diff --git a/WatchApp Extension/Info.plist b/WatchApp Extension/Info.plist index d8c774e5fc..621bb57996 100644 --- a/WatchApp Extension/Info.plist +++ b/WatchApp Extension/Info.plist @@ -32,6 +32,7 @@ CLKComplicationFamilyUtilitarianSmallFlat CLKComplicationFamilyUtilitarianLarge CLKComplicationFamilyModularLarge + CLKComplicationFamilyUtilitarianSmall NSExtension From 523f04693bcc4d2a0fca0d8f33f5f3959eb95028 Mon Sep 17 00:00:00 2001 From: Pete Schwamb Date: Wed, 1 Mar 2017 23:30:10 -0600 Subject: [PATCH 2/2] Add missing files --- .../28F6F412-3A28-4CF6-A184-F6345627D8C8.json | 31 +++++++++++++++++++ .../30ACFC76-BFF3-4761-9345-5C169460F920.json | 27 ++++++++++++++++ .../3902026C-B841-4642-AD7B-1CA80FAC447D.json | 21 +++++++++++++ .../50FD3B5F-03E3-486D-A506-21DC4A3B4857.json | 15 +++++++++ .../5506FC7B-C7BA-439A-8075-7B1C5DE1114A.json | 22 +++++++++++++ .../7F6C7226-52B7-406D-ACD2-7AB92587CBB4.json | 27 ++++++++++++++++ .../B1F1D9E8-541F-414D-AF5D-780D6B993FD9.json | 22 +++++++++++++ .../it.lproj/ckcomplication.strings | 13 ++++++++ .../Circular.imageset/Contents.json | 18 +++++++++++ .../Contents.json | 28 +++++++++++++++++ .../Extra Large.imageset/Contents.json | 18 +++++++++++ .../Modular.imageset/Contents.json | 18 +++++++++++ .../Utilitarian.imageset/Contents.json | 18 +++++++++++ .../it.lproj/ckcomplication.strings | 13 ++++++++ 14 files changed, 291 insertions(+) create mode 100644 Loop/gallery.ckcomplication/28F6F412-3A28-4CF6-A184-F6345627D8C8.json create mode 100644 Loop/gallery.ckcomplication/30ACFC76-BFF3-4761-9345-5C169460F920.json create mode 100644 Loop/gallery.ckcomplication/3902026C-B841-4642-AD7B-1CA80FAC447D.json create mode 100644 Loop/gallery.ckcomplication/50FD3B5F-03E3-486D-A506-21DC4A3B4857.json create mode 100644 Loop/gallery.ckcomplication/5506FC7B-C7BA-439A-8075-7B1C5DE1114A.json create mode 100644 Loop/gallery.ckcomplication/7F6C7226-52B7-406D-ACD2-7AB92587CBB4.json create mode 100644 Loop/gallery.ckcomplication/B1F1D9E8-541F-414D-AF5D-780D6B993FD9.json create mode 100644 Loop/gallery.ckcomplication/it.lproj/ckcomplication.strings create mode 100644 WatchApp Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json create mode 100644 WatchApp Extension/Assets.xcassets/Complication.complicationset/Contents.json create mode 100644 WatchApp Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json create mode 100644 WatchApp Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json create mode 100644 WatchApp Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json create mode 100644 WatchApp Extension/it.lproj/ckcomplication.strings diff --git a/Loop/gallery.ckcomplication/28F6F412-3A28-4CF6-A184-F6345627D8C8.json b/Loop/gallery.ckcomplication/28F6F412-3A28-4CF6-A184-F6345627D8C8.json new file mode 100644 index 0000000000..a20cb0302c --- /dev/null +++ b/Loop/gallery.ckcomplication/28F6F412-3A28-4CF6-A184-F6345627D8C8.json @@ -0,0 +1,31 @@ +{ + "tintColor" : { + "green" : 0.5843138, + "red" : 1, + "alpha" : 1, + "blue" : 0 + }, + "class" : "CLKComplicationTemplateUtilitarianLargeFlat", + "textProvider" : { + "textProviders" : [ + { + "shortText" : "120", + "class" : "CLKLocalizableSimpleTextProvider", + "text" : "120↘︎" + }, + { + "class" : "CLKLocalizableSimpleTextProvider", + "text" : "75" + }, + { + "class" : "CLKRelativeDateTextProvider", + "relativeDateStyle" : 0, + "calendarUnits" : 64, + "date" : 509858751.802992 + } + ], + "class" : "CLKLocalizableCompoundTextProvider", + "formatKey" : "UtilitarianLargeFlat" + }, + "version" : 30000 +} \ No newline at end of file diff --git a/Loop/gallery.ckcomplication/30ACFC76-BFF3-4761-9345-5C169460F920.json b/Loop/gallery.ckcomplication/30ACFC76-BFF3-4761-9345-5C169460F920.json new file mode 100644 index 0000000000..d4b1a7f672 --- /dev/null +++ b/Loop/gallery.ckcomplication/30ACFC76-BFF3-4761-9345-5C169460F920.json @@ -0,0 +1,27 @@ +{ + "tintColor" : { + "green" : 0.5843138, + "red" : 1, + "alpha" : 1, + "blue" : 0 + }, + "class" : "CLKComplicationTemplateUtilitarianSmallFlat", + "textProvider" : { + "textProviders" : [ + { + "shortText" : "120", + "class" : "CLKLocalizableSimpleTextProvider", + "text" : "120↘︎" + }, + { + "class" : "CLKRelativeDateTextProvider", + "relativeDateStyle" : 0, + "calendarUnits" : 64, + "date" : 509858751.808347 + } + ], + "class" : "CLKLocalizableCompoundTextProvider", + "formatKey" : "UtilitarianSmallFlat" + }, + "version" : 30000 +} \ No newline at end of file diff --git a/Loop/gallery.ckcomplication/3902026C-B841-4642-AD7B-1CA80FAC447D.json b/Loop/gallery.ckcomplication/3902026C-B841-4642-AD7B-1CA80FAC447D.json new file mode 100644 index 0000000000..1e349a0ab1 --- /dev/null +++ b/Loop/gallery.ckcomplication/3902026C-B841-4642-AD7B-1CA80FAC447D.json @@ -0,0 +1,21 @@ +{ + "tintColor" : { + "green" : 0.5843138, + "red" : 1, + "alpha" : 1, + "blue" : 0 + }, + "class" : "CLKComplicationTemplateModularLargeTallBody", + "bodyTextProvider" : { + "shortText" : "120", + "class" : "CLKLocalizableSimpleTextProvider", + "text" : "120↘︎" + }, + "version" : 30000, + "headerTextProvider" : { + "class" : "CLKRelativeDateTextProvider", + "relativeDateStyle" : 0, + "calendarUnits" : 64, + "date" : 509858751.805835 + } +} \ No newline at end of file diff --git a/Loop/gallery.ckcomplication/50FD3B5F-03E3-486D-A506-21DC4A3B4857.json b/Loop/gallery.ckcomplication/50FD3B5F-03E3-486D-A506-21DC4A3B4857.json new file mode 100644 index 0000000000..b4e7818ff9 --- /dev/null +++ b/Loop/gallery.ckcomplication/50FD3B5F-03E3-486D-A506-21DC4A3B4857.json @@ -0,0 +1,15 @@ +{ + "tintColor" : { + "green" : 0.5843138, + "red" : 1, + "alpha" : 1, + "blue" : 0 + }, + "class" : "CLKComplicationTemplateCircularSmallSimpleText", + "textProvider" : { + "shortText" : "120", + "class" : "CLKLocalizableSimpleTextProvider", + "text" : "120↘︎" + }, + "version" : 30000 +} \ No newline at end of file diff --git a/Loop/gallery.ckcomplication/5506FC7B-C7BA-439A-8075-7B1C5DE1114A.json b/Loop/gallery.ckcomplication/5506FC7B-C7BA-439A-8075-7B1C5DE1114A.json new file mode 100644 index 0000000000..a39ffa8895 --- /dev/null +++ b/Loop/gallery.ckcomplication/5506FC7B-C7BA-439A-8075-7B1C5DE1114A.json @@ -0,0 +1,22 @@ +{ + "tintColor" : { + "green" : 0.5843138, + "red" : 1, + "alpha" : 1, + "blue" : 0 + }, + "class" : "CLKComplicationTemplateModularSmallStackText", + "highlightLine2" : false, + "line2TextProvider" : { + "class" : "CLKRelativeDateTextProvider", + "relativeDateStyle" : 0, + "calendarUnits" : 64, + "date" : 509858751.798859 + }, + "version" : 30000, + "line1TextProvider" : { + "shortText" : "120", + "class" : "CLKLocalizableSimpleTextProvider", + "text" : "120↘︎" + } +} \ No newline at end of file diff --git a/Loop/gallery.ckcomplication/7F6C7226-52B7-406D-ACD2-7AB92587CBB4.json b/Loop/gallery.ckcomplication/7F6C7226-52B7-406D-ACD2-7AB92587CBB4.json new file mode 100644 index 0000000000..e1de2501c0 --- /dev/null +++ b/Loop/gallery.ckcomplication/7F6C7226-52B7-406D-ACD2-7AB92587CBB4.json @@ -0,0 +1,27 @@ +{ + "tintColor" : { + "green" : 0.5843138, + "red" : 1, + "alpha" : 1, + "blue" : 0 + }, + "class" : "CLKComplicationTemplateUtilitarianSmallFlat", + "textProvider" : { + "textProviders" : [ + { + "shortText" : "120", + "class" : "CLKLocalizableSimpleTextProvider", + "text" : "120↘︎" + }, + { + "class" : "CLKRelativeDateTextProvider", + "relativeDateStyle" : 0, + "calendarUnits" : 64, + "date" : 509858751.8126 + } + ], + "class" : "CLKLocalizableCompoundTextProvider", + "formatKey" : "UtilitarianSmallFlat" + }, + "version" : 30000 +} \ No newline at end of file diff --git a/Loop/gallery.ckcomplication/B1F1D9E8-541F-414D-AF5D-780D6B993FD9.json b/Loop/gallery.ckcomplication/B1F1D9E8-541F-414D-AF5D-780D6B993FD9.json new file mode 100644 index 0000000000..a95b339cf3 --- /dev/null +++ b/Loop/gallery.ckcomplication/B1F1D9E8-541F-414D-AF5D-780D6B993FD9.json @@ -0,0 +1,22 @@ +{ + "tintColor" : { + "green" : 0.5843138, + "red" : 1, + "alpha" : 1, + "blue" : 0 + }, + "class" : "CLKComplicationTemplateExtraLargeStackText", + "highlightLine2" : false, + "line2TextProvider" : { + "class" : "CLKRelativeDateTextProvider", + "relativeDateStyle" : 0, + "calendarUnits" : 64, + "date" : 509858751.81526 + }, + "version" : 30000, + "line1TextProvider" : { + "shortText" : "120", + "class" : "CLKLocalizableSimpleTextProvider", + "text" : "120↘︎" + } +} \ No newline at end of file diff --git a/Loop/gallery.ckcomplication/it.lproj/ckcomplication.strings b/Loop/gallery.ckcomplication/it.lproj/ckcomplication.strings new file mode 100644 index 0000000000..26493ed457 --- /dev/null +++ b/Loop/gallery.ckcomplication/it.lproj/ckcomplication.strings @@ -0,0 +1,13 @@ +/* + ckcomplication.strings + Loop + + Created by Nate Racklyeft on 9/18/16. + Copyright © 2016 Nathan Racklyeft. All rights reserved. +*/ + +/* The complication template example glucose & trend */ +"120↘︎" = "6.7↘︎"; + +/* The complication template example eventual glucose */ +"75" = "3.0"; diff --git a/WatchApp Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json new file mode 100644 index 0000000000..f84499ba51 --- /dev/null +++ b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Circular.imageset/Contents.json @@ -0,0 +1,18 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/WatchApp Extension/Assets.xcassets/Complication.complicationset/Contents.json b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Contents.json new file mode 100644 index 0000000000..c8ebf0675f --- /dev/null +++ b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Contents.json @@ -0,0 +1,28 @@ +{ + "assets" : [ + { + "idiom" : "watch", + "filename" : "Circular.imageset", + "role" : "circular" + }, + { + "idiom" : "watch", + "filename" : "Extra Large.imageset", + "role" : "extra-large" + }, + { + "idiom" : "watch", + "filename" : "Modular.imageset", + "role" : "modular" + }, + { + "idiom" : "watch", + "filename" : "Utilitarian.imageset", + "role" : "utilitarian" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/WatchApp Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json new file mode 100644 index 0000000000..f84499ba51 --- /dev/null +++ b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Extra Large.imageset/Contents.json @@ -0,0 +1,18 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/WatchApp Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json new file mode 100644 index 0000000000..f84499ba51 --- /dev/null +++ b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Modular.imageset/Contents.json @@ -0,0 +1,18 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/WatchApp Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json new file mode 100644 index 0000000000..f84499ba51 --- /dev/null +++ b/WatchApp Extension/Assets.xcassets/Complication.complicationset/Utilitarian.imageset/Contents.json @@ -0,0 +1,18 @@ +{ + "images" : [ + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : "<=145" + }, + { + "idiom" : "watch", + "scale" : "2x", + "screen-width" : ">145" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/WatchApp Extension/it.lproj/ckcomplication.strings b/WatchApp Extension/it.lproj/ckcomplication.strings new file mode 100644 index 0000000000..26493ed457 --- /dev/null +++ b/WatchApp Extension/it.lproj/ckcomplication.strings @@ -0,0 +1,13 @@ +/* + ckcomplication.strings + Loop + + Created by Nate Racklyeft on 9/18/16. + Copyright © 2016 Nathan Racklyeft. All rights reserved. +*/ + +/* The complication template example glucose & trend */ +"120↘︎" = "6.7↘︎"; + +/* The complication template example eventual glucose */ +"75" = "3.0";