Skip to content

Commit 7c297db

Browse files
committed
prepping for recording
1 parent 36414cf commit 7c297db

File tree

6 files changed

+3
-23
lines changed

6 files changed

+3
-23
lines changed

SwiftDataWidget.xcodeproj/project.pbxproj

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
813D16DF2C3C9181005E58A1 /* Thing.swift in Sources */ = {isa = PBXBuildFile; fileRef = 810F5EC92C3C78C3001AD056 /* Thing.swift */; };
2424
813D16E02C3C92F6005E58A1 /* DataModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 810F5ECB2C3C8371001AD056 /* DataModel.swift */; };
2525
8182EE992C3DB2A400623043 /* PreviewSampleData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8182EE982C3DB29E00623043 /* PreviewSampleData.swift */; };
26-
8182EE9D2C3DB6A900623043 /* ThingWidgetControl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8182EE9C2C3DB6A900623043 /* ThingWidgetControl.swift */; };
27-
81FE4B232C3CDBD80085360E /* MinusIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81FE4B222C3CDBD80085360E /* MinusIntent.swift */; };
28-
81FE4B242C3CDBD80085360E /* MinusIntent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81FE4B222C3CDBD80085360E /* MinusIntent.swift */; };
2926
/* End PBXBuildFile section */
3027

3128
/* Begin PBXContainerItemProxy section */
@@ -71,8 +68,6 @@
7168
810F5EEA2C3C862E001AD056 /* SwiftDataWidget.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SwiftDataWidget.entitlements; sourceTree = "<group>"; };
7269
810F5EEB2C3C864E001AD056 /* ThingWidgetExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ThingWidgetExtension.entitlements; sourceTree = SOURCE_ROOT; };
7370
8182EE982C3DB29E00623043 /* PreviewSampleData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PreviewSampleData.swift; sourceTree = "<group>"; };
74-
8182EE9C2C3DB6A900623043 /* ThingWidgetControl.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThingWidgetControl.swift; sourceTree = "<group>"; };
75-
81FE4B222C3CDBD80085360E /* MinusIntent.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MinusIntent.swift; sourceTree = "<group>"; };
7671
/* End PBXFileReference section */
7772

7873
/* Begin PBXFrameworksBuildPhase section */
@@ -120,11 +115,10 @@
120115
810F5EEA2C3C862E001AD056 /* SwiftDataWidget.entitlements */,
121116
810F5EBB2C3C4F8C001AD056 /* SwiftDataWidgetApp.swift */,
122117
810F5EBD2C3C4F8C001AD056 /* ContentView.swift */,
123-
8182EE982C3DB29E00623043 /* PreviewSampleData.swift */,
124118
810F5ECB2C3C8371001AD056 /* DataModel.swift */,
119+
810F5EC92C3C78C3001AD056 /* Thing.swift */,
125120
810F5EBF2C3C4F8D001AD056 /* Assets.xcassets */,
126121
810F5EC12C3C4F8D001AD056 /* Preview Content */,
127-
810F5EC92C3C78C3001AD056 /* Thing.swift */,
128122
);
129123
path = SwiftDataWidget;
130124
sourceTree = "<group>";
@@ -133,6 +127,7 @@
133127
isa = PBXGroup;
134128
children = (
135129
810F5EC22C3C4F8D001AD056 /* Preview Assets.xcassets */,
130+
8182EE982C3DB29E00623043 /* PreviewSampleData.swift */,
136131
);
137132
path = "Preview Content";
138133
sourceTree = "<group>";
@@ -151,10 +146,8 @@
151146
children = (
152147
810F5EEB2C3C864E001AD056 /* ThingWidgetExtension.entitlements */,
153148
810F5ED82C3C85FC001AD056 /* ThingWidgetBundle.swift */,
154-
8182EE9C2C3DB6A900623043 /* ThingWidgetControl.swift */,
155149
810F5EDC2C3C85FC001AD056 /* ThingWidget.swift */,
156150
810F5EDE2C3C85FC001AD056 /* CountIntent.swift */,
157-
81FE4B222C3CDBD80085360E /* MinusIntent.swift */,
158151
810F5EE02C3C85FD001AD056 /* Assets.xcassets */,
159152
810F5EE22C3C85FD001AD056 /* Info.plist */,
160153
);
@@ -267,21 +260,18 @@
267260
8182EE992C3DB2A400623043 /* PreviewSampleData.swift in Sources */,
268261
810F5ECA2C3C78C3001AD056 /* Thing.swift in Sources */,
269262
810F5EBC2C3C4F8C001AD056 /* SwiftDataWidgetApp.swift in Sources */,
270-
81FE4B242C3CDBD80085360E /* MinusIntent.swift in Sources */,
271263
);
272264
runOnlyForDeploymentPostprocessing = 0;
273265
};
274266
810F5ECD2C3C85FC001AD056 /* Sources */ = {
275267
isa = PBXSourcesBuildPhase;
276268
buildActionMask = 2147483647;
277269
files = (
278-
81FE4B232C3CDBD80085360E /* MinusIntent.swift in Sources */,
279270
810F5EDF2C3C85FC001AD056 /* CountIntent.swift in Sources */,
280271
810F5ED92C3C85FC001AD056 /* ThingWidgetBundle.swift in Sources */,
281272
813D16DF2C3C9181005E58A1 /* Thing.swift in Sources */,
282273
810F5EDD2C3C85FC001AD056 /* ThingWidget.swift in Sources */,
283274
813D16E02C3C92F6005E58A1 /* DataModel.swift in Sources */,
284-
8182EE9D2C3DB6A900623043 /* ThingWidgetControl.swift in Sources */,
285275
);
286276
runOnlyForDeploymentPostprocessing = 0;
287277
};

ThingWidget/CountIntent.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct CountIntent: AppIntent {
3737
return .result()
3838
}
3939
do {
40-
if thing.count < 50 {
40+
if thing.count < 100 {
4141
thing.count += 1
4242
ControlCenter.shared.reloadControls(
4343
ofKind: "codefruit.SwiftDataWidget.ThingWidgetControl"

ThingWidget/ThingWidget.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,15 +83,6 @@ struct ThingWidgetEntryView : View {
8383

8484
var body: some View {
8585
HStack {
86-
// Minus Button
87-
Button(intent: MinusIntent(count: entry.count)) {
88-
Image(systemName: "minus")
89-
.font(.title.bold())
90-
.frame(width: 15, height: 15)
91-
.foregroundStyle(Color.pink)
92-
}
93-
.buttonRepeatBehavior(.enabled)
94-
9586
Text("\(entry.count)")
9687
.font(.system(.title).bold())
9788
.frame(width: 45, height: 45)

ThingWidget/ThingWidgetBundle.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ import SwiftUI
1212
struct ThingWidgetBundle: WidgetBundle {
1313
var body: some Widget {
1414
ThingWidget()
15-
ThingWidgetControl()
1615
}
1716
}

0 commit comments

Comments
 (0)