Skip to content

Commit 415b2a3

Browse files
committed
update
1 parent 72f31ad commit 415b2a3

File tree

22 files changed

+1365
-13
lines changed

22 files changed

+1365
-13
lines changed

coreml-stable-diffusion-swift-example.xcodeproj/project.pbxproj

+131
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,19 @@
1414
789E96CE29CDC71700E7C50A /* coreml_stable_diffusion_swift_exampleTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96CD29CDC71700E7C50A /* coreml_stable_diffusion_swift_exampleTests.swift */; };
1515
789E96D829CDC71700E7C50A /* coreml_stable_diffusion_swift_exampleUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96D729CDC71700E7C50A /* coreml_stable_diffusion_swift_exampleUITests.swift */; };
1616
789E96DA29CDC71700E7C50A /* coreml_stable_diffusion_swift_exampleUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96D929CDC71700E7C50A /* coreml_stable_diffusion_swift_exampleUITestsLaunchTests.swift */; };
17+
789E96E829CDC74A00E7C50A /* coreml-stable-diffusion-swift in Frameworks */ = {isa = PBXBuildFile; productRef = 789E96E729CDC74A00E7C50A /* coreml-stable-diffusion-swift */; };
18+
789E96F629CDC7CC00E7C50A /* IEventLoger.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96EA29CDC7CC00E7C50A /* IEventLoger.swift */; };
19+
789E96F729CDC7CC00E7C50A /* OutputView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96EC29CDC7CC00E7C50A /* OutputView.swift */; };
20+
789E96F829CDC7CC00E7C50A /* SideBar.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96ED29CDC7CC00E7C50A /* SideBar.swift */; };
21+
789E96F929CDC7CC00E7C50A /* ToolBarContent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96EE29CDC7CC00E7C50A /* ToolBarContent.swift */; };
22+
789E96FA29CDC7CC00E7C50A /* LoggerTpl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96EF29CDC7CC00E7C50A /* LoggerTpl.swift */; };
23+
789E96FB29CDC7CC00E7C50A /* Prompts.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96F129CDC7CC00E7C50A /* Prompts.swift */; };
24+
789E96FC29CDC7CC00E7C50A /* InputImageView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96F229CDC7CC00E7C50A /* InputImageView.swift */; };
25+
789E96FD29CDC7CC00E7C50A /* SlidersView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96F329CDC7CC00E7C50A /* SlidersView.swift */; };
26+
789E96FE29CDC7CC00E7C50A /* ViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E96F529CDC7CC00E7C50A /* ViewModel.swift */; };
27+
789E970529CDC7D300E7C50A /* HelperTpl.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E970029CDC7D300E7C50A /* HelperTpl.swift */; };
28+
789E970629CDC7D300E7C50A /* LogEvent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E970229CDC7D300E7C50A /* LogEvent.swift */; };
29+
789E970729CDC7D300E7C50A /* LogEvenType.swift in Sources */ = {isa = PBXBuildFile; fileRef = 789E970429CDC7D300E7C50A /* LogEvenType.swift */; };
1730
/* End PBXBuildFile section */
1831

1932
/* Begin PBXContainerItemProxy section */
@@ -45,13 +58,26 @@
4558
789E96D329CDC71700E7C50A /* coreml-stable-diffusion-swift-exampleUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "coreml-stable-diffusion-swift-exampleUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; };
4659
789E96D729CDC71700E7C50A /* coreml_stable_diffusion_swift_exampleUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = coreml_stable_diffusion_swift_exampleUITests.swift; sourceTree = "<group>"; };
4760
789E96D929CDC71700E7C50A /* coreml_stable_diffusion_swift_exampleUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = coreml_stable_diffusion_swift_exampleUITestsLaunchTests.swift; sourceTree = "<group>"; };
61+
789E96EA29CDC7CC00E7C50A /* IEventLoger.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = IEventLoger.swift; sourceTree = "<group>"; };
62+
789E96EC29CDC7CC00E7C50A /* OutputView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = OutputView.swift; sourceTree = "<group>"; };
63+
789E96ED29CDC7CC00E7C50A /* SideBar.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SideBar.swift; sourceTree = "<group>"; };
64+
789E96EE29CDC7CC00E7C50A /* ToolBarContent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ToolBarContent.swift; sourceTree = "<group>"; };
65+
789E96EF29CDC7CC00E7C50A /* LoggerTpl.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LoggerTpl.swift; sourceTree = "<group>"; };
66+
789E96F129CDC7CC00E7C50A /* Prompts.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Prompts.swift; sourceTree = "<group>"; };
67+
789E96F229CDC7CC00E7C50A /* InputImageView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = InputImageView.swift; sourceTree = "<group>"; };
68+
789E96F329CDC7CC00E7C50A /* SlidersView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SlidersView.swift; sourceTree = "<group>"; };
69+
789E96F529CDC7CC00E7C50A /* ViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewModel.swift; sourceTree = "<group>"; };
70+
789E970029CDC7D300E7C50A /* HelperTpl.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = HelperTpl.swift; sourceTree = "<group>"; };
71+
789E970229CDC7D300E7C50A /* LogEvent.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LogEvent.swift; sourceTree = "<group>"; };
72+
789E970429CDC7D300E7C50A /* LogEvenType.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LogEvenType.swift; sourceTree = "<group>"; };
4873
/* End PBXFileReference section */
4974

5075
/* Begin PBXFrameworksBuildPhase section */
5176
789E96B529CDC71600E7C50A /* Frameworks */ = {
5277
isa = PBXFrameworksBuildPhase;
5378
buildActionMask = 2147483647;
5479
files = (
80+
789E96E829CDC74A00E7C50A /* coreml-stable-diffusion-swift in Frameworks */,
5581
);
5682
runOnlyForDeploymentPostprocessing = 0;
5783
};
@@ -95,6 +121,13 @@
95121
789E96BA29CDC71600E7C50A /* coreml-stable-diffusion-swift-example */ = {
96122
isa = PBXGroup;
97123
children = (
124+
789E970329CDC7D300E7C50A /* enum */,
125+
789E96FF29CDC7D300E7C50A /* helper */,
126+
789E970129CDC7D300E7C50A /* model */,
127+
789E96F029CDC7CC00E7C50A /* controls */,
128+
789E96E929CDC7CC00E7C50A /* protocol */,
129+
789E96EB29CDC7CC00E7C50A /* view */,
130+
789E96F429CDC7CC00E7C50A /* viewmodel */,
98131
789E96BB29CDC71600E7C50A /* coreml_stable_diffusion_swift_exampleApp.swift */,
99132
789E96BD29CDC71600E7C50A /* ContentView.swift */,
100133
789E96BF29CDC71700E7C50A /* Assets.xcassets */,
@@ -129,6 +162,67 @@
129162
path = "coreml-stable-diffusion-swift-exampleUITests";
130163
sourceTree = "<group>";
131164
};
165+
789E96E929CDC7CC00E7C50A /* protocol */ = {
166+
isa = PBXGroup;
167+
children = (
168+
789E96EA29CDC7CC00E7C50A /* IEventLoger.swift */,
169+
);
170+
path = protocol;
171+
sourceTree = "<group>";
172+
};
173+
789E96EB29CDC7CC00E7C50A /* view */ = {
174+
isa = PBXGroup;
175+
children = (
176+
789E96EC29CDC7CC00E7C50A /* OutputView.swift */,
177+
789E96ED29CDC7CC00E7C50A /* SideBar.swift */,
178+
789E96EE29CDC7CC00E7C50A /* ToolBarContent.swift */,
179+
789E96EF29CDC7CC00E7C50A /* LoggerTpl.swift */,
180+
);
181+
path = view;
182+
sourceTree = "<group>";
183+
};
184+
789E96F029CDC7CC00E7C50A /* controls */ = {
185+
isa = PBXGroup;
186+
children = (
187+
789E96F129CDC7CC00E7C50A /* Prompts.swift */,
188+
789E96F229CDC7CC00E7C50A /* InputImageView.swift */,
189+
789E96F329CDC7CC00E7C50A /* SlidersView.swift */,
190+
);
191+
path = controls;
192+
sourceTree = "<group>";
193+
};
194+
789E96F429CDC7CC00E7C50A /* viewmodel */ = {
195+
isa = PBXGroup;
196+
children = (
197+
789E96F529CDC7CC00E7C50A /* ViewModel.swift */,
198+
);
199+
path = viewmodel;
200+
sourceTree = "<group>";
201+
};
202+
789E96FF29CDC7D300E7C50A /* helper */ = {
203+
isa = PBXGroup;
204+
children = (
205+
789E970029CDC7D300E7C50A /* HelperTpl.swift */,
206+
);
207+
path = helper;
208+
sourceTree = "<group>";
209+
};
210+
789E970129CDC7D300E7C50A /* model */ = {
211+
isa = PBXGroup;
212+
children = (
213+
789E970229CDC7D300E7C50A /* LogEvent.swift */,
214+
);
215+
path = model;
216+
sourceTree = "<group>";
217+
};
218+
789E970329CDC7D300E7C50A /* enum */ = {
219+
isa = PBXGroup;
220+
children = (
221+
789E970429CDC7D300E7C50A /* LogEvenType.swift */,
222+
);
223+
path = enum;
224+
sourceTree = "<group>";
225+
};
132226
/* End PBXGroup section */
133227

134228
/* Begin PBXNativeTarget section */
@@ -145,6 +239,9 @@
145239
dependencies = (
146240
);
147241
name = "coreml-stable-diffusion-swift-example";
242+
packageProductDependencies = (
243+
789E96E729CDC74A00E7C50A /* coreml-stable-diffusion-swift */,
244+
);
148245
productName = "coreml-stable-diffusion-swift-example";
149246
productReference = 789E96B829CDC71600E7C50A /* coreml-stable-diffusion-swift-example.app */;
150247
productType = "com.apple.product-type.application";
@@ -217,6 +314,9 @@
217314
Base,
218315
);
219316
mainGroup = 789E96AF29CDC71600E7C50A;
317+
packageReferences = (
318+
789E96E629CDC74A00E7C50A /* XCRemoteSwiftPackageReference "coreml-stable-diffusion-swift" */,
319+
);
220320
productRefGroup = 789E96B929CDC71600E7C50A /* Products */;
221321
projectDirPath = "";
222322
projectRoot = "";
@@ -259,8 +359,20 @@
259359
isa = PBXSourcesBuildPhase;
260360
buildActionMask = 2147483647;
261361
files = (
362+
789E96FA29CDC7CC00E7C50A /* LoggerTpl.swift in Sources */,
363+
789E96FD29CDC7CC00E7C50A /* SlidersView.swift in Sources */,
364+
789E96F829CDC7CC00E7C50A /* SideBar.swift in Sources */,
365+
789E970629CDC7D300E7C50A /* LogEvent.swift in Sources */,
366+
789E96FE29CDC7CC00E7C50A /* ViewModel.swift in Sources */,
367+
789E96F929CDC7CC00E7C50A /* ToolBarContent.swift in Sources */,
262368
789E96BE29CDC71600E7C50A /* ContentView.swift in Sources */,
369+
789E96F629CDC7CC00E7C50A /* IEventLoger.swift in Sources */,
370+
789E96FB29CDC7CC00E7C50A /* Prompts.swift in Sources */,
263371
789E96BC29CDC71600E7C50A /* coreml_stable_diffusion_swift_exampleApp.swift in Sources */,
372+
789E970729CDC7D300E7C50A /* LogEvenType.swift in Sources */,
373+
789E96F729CDC7CC00E7C50A /* OutputView.swift in Sources */,
374+
789E970529CDC7D300E7C50A /* HelperTpl.swift in Sources */,
375+
789E96FC29CDC7CC00E7C50A /* InputImageView.swift in Sources */,
264376
);
265377
runOnlyForDeploymentPostprocessing = 0;
266378
};
@@ -576,6 +688,25 @@
576688
defaultConfigurationName = Release;
577689
};
578690
/* End XCConfigurationList section */
691+
692+
/* Begin XCRemoteSwiftPackageReference section */
693+
789E96E629CDC74A00E7C50A /* XCRemoteSwiftPackageReference "coreml-stable-diffusion-swift" */ = {
694+
isa = XCRemoteSwiftPackageReference;
695+
repositoryURL = "https://github.com/The-Igor/coreml-stable-diffusion-swift.git";
696+
requirement = {
697+
branch = main;
698+
kind = branch;
699+
};
700+
};
701+
/* End XCRemoteSwiftPackageReference section */
702+
703+
/* Begin XCSwiftPackageProductDependency section */
704+
789E96E729CDC74A00E7C50A /* coreml-stable-diffusion-swift */ = {
705+
isa = XCSwiftPackageProductDependency;
706+
package = 789E96E629CDC74A00E7C50A /* XCRemoteSwiftPackageReference "coreml-stable-diffusion-swift" */;
707+
productName = "coreml-stable-diffusion-swift";
708+
};
709+
/* End XCSwiftPackageProductDependency section */
579710
};
580711
rootObject = 789E96B029CDC71600E7C50A /* Project object */;
581712
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
{
2+
"pins" : [
3+
{
4+
"identity" : "coreml-stable-diffusion-swift",
5+
"kind" : "remoteSourceControl",
6+
"location" : "https://github.com/The-Igor/coreml-stable-diffusion-swift",
7+
"state" : {
8+
"branch" : "main",
9+
"revision" : "8c1e054cfd80c83c6615b9d2b9167d70509ad48f"
10+
}
11+
},
12+
{
13+
"identity" : "files",
14+
"kind" : "remoteSourceControl",
15+
"location" : "https://github.com/JohnSundell/Files.git",
16+
"state" : {
17+
"revision" : "d273b5b7025d386feef79ef6bad7de762e106eaf",
18+
"version" : "4.2.0"
19+
}
20+
},
21+
{
22+
"identity" : "ml-stable-diffusion",
23+
"kind" : "remoteSourceControl",
24+
"location" : "https://github.com/apple/ml-stable-diffusion.git",
25+
"state" : {
26+
"branch" : "main",
27+
"revision" : "2c4e9de73c9e723de264356f9563706ea9104212"
28+
}
29+
},
30+
{
31+
"identity" : "swift-argument-parser",
32+
"kind" : "remoteSourceControl",
33+
"location" : "https://github.com/apple/swift-argument-parser.git",
34+
"state" : {
35+
"revision" : "fddd1c00396eed152c45a46bea9f47b98e59301d",
36+
"version" : "1.2.0"
37+
}
38+
}
39+
],
40+
"version" : 2
41+
}

coreml-stable-diffusion-swift-example/Assets.xcassets/AppIcon.appiconset/Contents.json

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"size" : "512x512"
4747
},
4848
{
49+
"filename" : "logo.png",
4950
"idiom" : "mac",
5051
"scale" : "2x",
5152
"size" : "512x512"
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "app.png",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"filename" : "bg.svg",
5+
"idiom" : "universal",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"author" : "xcode",
19+
"version" : 1
20+
}
21+
}

0 commit comments

Comments
 (0)