Skip to content

Commit ea35001

Browse files
committed
remove lockscreen widget
1 parent fcc45d7 commit ea35001

File tree

6 files changed

+1
-85
lines changed

6 files changed

+1
-85
lines changed

Loop Widget Extension/Helpers/ContentMargin.swift

Lines changed: 0 additions & 20 deletions
This file was deleted.

Loop Widget Extension/Helpers/WidgetBackground.swift

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ import SwiftUI
1111
extension View {
1212
@ViewBuilder
1313
func widgetBackground() -> some View {
14-
if #available(iOSApplicationExtension 17.0, *) {
15-
self.containerBackground(for: .widget) {
16-
Color("WidgetBackground")
17-
}
18-
} else {
19-
self.background { Color("WidgetBackground") }
20-
}
14+
self.background { Color("WidgetBackground") }
2115
}
2216
}

Loop Widget Extension/LoopWidgets.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,5 @@ struct LoopWidgets: WidgetBundle {
1414
@WidgetBundleBuilder
1515
var body: some Widget {
1616
SystemStatusWidget()
17-
18-
if #available(iOSApplicationExtension 16.0, *) {
19-
LockscreenAccessoryWidget()
20-
}
2117
}
2218
}

Loop Widget Extension/Widgets/LockscreenAccessoryWidget.swift

Lines changed: 0 additions & 45 deletions
This file was deleted.

Loop Widget Extension/Widgets/SystemStatusWidget.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,5 @@ struct SystemStatusWidget: Widget {
7676
.configurationDisplayName("Loop Status Widget")
7777
.description("See your current blood glucose and insulin delivery.")
7878
.supportedFamilies([.systemSmall, .systemMedium])
79-
.contentMarginsDisabledIfAvailable()
8079
}
8180
}

Loop.xcodeproj/project.pbxproj

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,11 @@
270270
7D70765E1FE06EE3004AC8EA /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 7D7076601FE06EE3004AC8EA /* Localizable.strings */; };
271271
7D7076631FE06EE4004AC8EA /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 7D7076651FE06EE4004AC8EA /* Localizable.strings */; };
272272
7E69CFFC2A16A77E00203CBD /* ResetLoopManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 7E69CFFB2A16A77E00203CBD /* ResetLoopManager.swift */; };
273-
8463E4012A4A541700098542 /* LockscreenAccessoryWidget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8463E4002A4A541700098542 /* LockscreenAccessoryWidget.swift */; };
274273
84AA81D32A4A27A3000B658B /* LoopWidgets.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AA81D22A4A27A3000B658B /* LoopWidgets.swift */; };
275274
84AA81D62A4A28AF000B658B /* WidgetBackground.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AA81D52A4A28AF000B658B /* WidgetBackground.swift */; };
276275
84AA81D82A4A2910000B658B /* StatusWidgetTimelimeEntry.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AA81D72A4A2910000B658B /* StatusWidgetTimelimeEntry.swift */; };
277276
84AA81DB2A4A2973000B658B /* Date.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AA81DA2A4A2973000B658B /* Date.swift */; };
278277
84AA81DD2A4A2999000B658B /* StatusWidgetTimelineProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AA81DC2A4A2999000B658B /* StatusWidgetTimelineProvider.swift */; };
279-
84AA81E12A4A2D3C000B658B /* ContentMargin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AA81E02A4A2D3C000B658B /* ContentMargin.swift */; };
280278
84AA81E32A4A36FB000B658B /* SystemActionLink.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AA81E22A4A36FB000B658B /* SystemActionLink.swift */; };
281279
84AA81E52A4A3981000B658B /* DeeplinkManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AA81E42A4A3981000B658B /* DeeplinkManager.swift */; };
282280
84AA81E72A4A4DEF000B658B /* PumpView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 84AA81E62A4A4DEF000B658B /* PumpView.swift */; };
@@ -1263,13 +1261,11 @@
12631261
7DD382791F8DBFC60071272B /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Interface.strings; sourceTree = "<group>"; };
12641262
7E69CFFB2A16A77E00203CBD /* ResetLoopManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResetLoopManager.swift; sourceTree = "<group>"; };
12651263
80F864E52433BF5D0026EC26 /* fi */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = fi; path = fi.lproj/InfoPlist.strings; sourceTree = "<group>"; };
1266-
8463E4002A4A541700098542 /* LockscreenAccessoryWidget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LockscreenAccessoryWidget.swift; sourceTree = "<group>"; };
12671264
84AA81D22A4A27A3000B658B /* LoopWidgets.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoopWidgets.swift; sourceTree = "<group>"; };
12681265
84AA81D52A4A28AF000B658B /* WidgetBackground.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WidgetBackground.swift; sourceTree = "<group>"; };
12691266
84AA81D72A4A2910000B658B /* StatusWidgetTimelimeEntry.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusWidgetTimelimeEntry.swift; sourceTree = "<group>"; };
12701267
84AA81DA2A4A2973000B658B /* Date.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Date.swift; sourceTree = "<group>"; };
12711268
84AA81DC2A4A2999000B658B /* StatusWidgetTimelineProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StatusWidgetTimelineProvider.swift; sourceTree = "<group>"; };
1272-
84AA81E02A4A2D3C000B658B /* ContentMargin.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentMargin.swift; sourceTree = "<group>"; };
12731269
84AA81E22A4A36FB000B658B /* SystemActionLink.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SystemActionLink.swift; sourceTree = "<group>"; };
12741270
84AA81E42A4A3981000B658B /* DeeplinkManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DeeplinkManager.swift; sourceTree = "<group>"; };
12751271
84AA81E62A4A4DEF000B658B /* PumpView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PumpView.swift; sourceTree = "<group>"; };
@@ -2706,7 +2702,6 @@
27062702
children = (
27072703
84AA81DA2A4A2973000B658B /* Date.swift */,
27082704
84AA81D52A4A28AF000B658B /* WidgetBackground.swift */,
2709-
84AA81E02A4A2D3C000B658B /* ContentMargin.swift */,
27102705
);
27112706
path = Helpers;
27122707
sourceTree = "<group>";
@@ -2724,7 +2719,6 @@
27242719
isa = PBXGroup;
27252720
children = (
27262721
14B1736F28AEDBF6006CCD7C /* SystemStatusWidget.swift */,
2727-
8463E4002A4A541700098542 /* LockscreenAccessoryWidget.swift */,
27282722
);
27292723
path = Widgets;
27302724
sourceTree = "<group>";
@@ -3854,7 +3848,6 @@
38543848
14B1737728AEDC6C006CCD7C /* NSBundle.swift in Sources */,
38553849
84AA81D62A4A28AF000B658B /* WidgetBackground.swift in Sources */,
38563850
84AA81D82A4A2910000B658B /* StatusWidgetTimelimeEntry.swift in Sources */,
3857-
8463E4012A4A541700098542 /* LockscreenAccessoryWidget.swift in Sources */,
38583851
84AA81D32A4A27A3000B658B /* LoopWidgets.swift in Sources */,
38593852
84AA81E32A4A36FB000B658B /* SystemActionLink.swift in Sources */,
38603853
14B1737828AEDC6C006CCD7C /* NSTimeInterval.swift in Sources */,
@@ -3871,7 +3864,6 @@
38713864
14B1737228AEDBF6006CCD7C /* BasalView.swift in Sources */,
38723865
14B1737428AEDBF6006CCD7C /* GlucoseView.swift in Sources */,
38733866
14B1737328AEDBF6006CCD7C /* SystemStatusWidget.swift in Sources */,
3874-
84AA81E12A4A2D3C000B658B /* ContentMargin.swift in Sources */,
38753867
84AA81DD2A4A2999000B658B /* StatusWidgetTimelineProvider.swift in Sources */,
38763868
14B1737528AEDBF6006CCD7C /* LoopCircleView.swift in Sources */,
38773869
);

0 commit comments

Comments
 (0)