Skip to content

Commit 9ff534f

Browse files
authored
Merge pull request #2027 from Camji55/homescreen-medium-widget
Homescreen Medium Widget
2 parents ebd77d3 + ea35001 commit 9ff534f

File tree

70 files changed

+674
-245
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+674
-245
lines changed

Common/Models/StatusExtensionContext.swift

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,9 @@ struct StatusExtensionContext: RawRepresentable {
298298
var lastLoopCompleted: Date?
299299
var createdAt: Date?
300300
var isClosedLoop: Bool?
301+
var preMealPresetAllowed: Bool?
302+
var preMealPresetActive: Bool?
303+
var customPresetActive: Bool?
301304
var netBasal: NetBasalContext?
302305
var batteryPercentage: Double?
303306
var reservoirCapacity: Double?
@@ -327,6 +330,9 @@ struct StatusExtensionContext: RawRepresentable {
327330
lastLoopCompleted = rawValue["lastLoopCompleted"] as? Date
328331
createdAt = rawValue["createdAt"] as? Date
329332
isClosedLoop = rawValue["isClosedLoop"] as? Bool
333+
preMealPresetAllowed = rawValue["preMealPresetAllowed"] as? Bool
334+
preMealPresetActive = rawValue["preMealPresetActive"] as? Bool
335+
customPresetActive = rawValue["customPresetActive"] as? Bool
330336
batteryPercentage = rawValue["batteryPercentage"] as? Double
331337
reservoirCapacity = rawValue["reservoirCapacity"] as? Double
332338
carbsOnBoard = rawValue["carbsOnBoard"] as? Double
@@ -365,6 +371,9 @@ struct StatusExtensionContext: RawRepresentable {
365371
raw["lastLoopCompleted"] = lastLoopCompleted
366372
raw["createdAt"] = createdAt
367373
raw["isClosedLoop"] = isClosedLoop
374+
raw["preMealPresetAllowed"] = preMealPresetAllowed
375+
raw["preMealPresetActive"] = preMealPresetActive
376+
raw["customPresetActive"] = customPresetActive
368377
raw["netBasal"] = netBasal?.rawValue
369378
raw["batteryPercentage"] = batteryPercentage
370379
raw["reservoirCapacity"] = reservoirCapacity
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "bolus.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"preserves-vector-representation" : true,
14+
"template-rendering-intent" : "template"
15+
}
16+
}
Binary file not shown.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "Meal.pdf",
5+
"idiom" : "universal"
6+
}
7+
],
8+
"info" : {
9+
"author" : "xcode",
10+
"version" : 1
11+
},
12+
"properties" : {
13+
"preserves-vector-representation" : true,
14+
"template-rendering-intent" : "template"
15+
}
16+
}
Binary file not shown.

0 commit comments

Comments
 (0)