Skip to content

Commit a667587

Browse files
authored
New PhotosUI (#222)
1 parent 6241538 commit a667587

File tree

11 files changed

+715
-376
lines changed

11 files changed

+715
-376
lines changed

Dev/Brightroom.xcodeproj/project.pbxproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
4B98CCC325EFF31400E4F61F /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4B98CCC225EFF31400E4F61F /* Preview Assets.xcassets */; };
7474
4B98CCE725EFF4EF00E4F61F /* Mocks.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4B98CCE625EFF4EF00E4F61F /* Mocks.swift */; };
7575
4B98CF5325F0122000E4F61F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4B600B29216B7C9E001E1456 /* Assets.xcassets */; };
76+
4BA2B1B42B86282D00E6DE64 /* BrightroomUIPhotosCrop in Frameworks */ = {isa = PBXBuildFile; productRef = 4BA2B1B32B86282D00E6DE64 /* BrightroomUIPhotosCrop */; };
7677
4BA41C82260CE817005E6FA7 /* orientation_up_mirrored.HEIC in Resources */ = {isa = PBXBuildFile; fileRef = 4B254FEB260BB32600F77E9A /* orientation_up_mirrored.HEIC */; };
7778
4BA41C83260CE817005E6FA7 /* orientation_right_mirrored.HEIC in Resources */ = {isa = PBXBuildFile; fileRef = 4B254FE7260BB32600F77E9A /* orientation_right_mirrored.HEIC */; };
7879
4BA41C84260CE817005E6FA7 /* orientation_left_mirrored.HEIC in Resources */ = {isa = PBXBuildFile; fileRef = 4B254FE6260BB32600F77E9A /* orientation_left_mirrored.HEIC */; };
@@ -1062,6 +1063,7 @@
10621063
4B7513CB2B6BEE2100A4743E /* SwiftUISupport in Frameworks */,
10631064
FC06C87F2A53AF4500215B89 /* BrightroomEngine in Frameworks */,
10641065
4B7513C82B6BEDFD00A4743E /* SwiftUIHosting in Frameworks */,
1066+
4BA2B1B42B86282D00E6DE64 /* BrightroomUIPhotosCrop in Frameworks */,
10651067
4B5E72BC2B6B761800DE7A2A /* Reveal-SDK in Frameworks */,
10661068
FC06C8812A53AF4500215B89 /* BrightroomUI in Frameworks */,
10671069
);
@@ -1784,6 +1786,7 @@
17841786
4B7513C72B6BEDFD00A4743E /* SwiftUIHosting */,
17851787
4B7513CA2B6BEE2100A4743E /* SwiftUISupport */,
17861788
4B46E71A2B762E20003179C2 /* MondrianLayout */,
1789+
4BA2B1B32B86282D00E6DE64 /* BrightroomUIPhotosCrop */,
17871790
);
17881791
productName = SwiftUIDemo;
17891792
productReference = 4B98CCB925EFF31300E4F61F /* SwiftUIDemo.app */;
@@ -3006,6 +3009,10 @@
30063009
package = 4B7513C92B6BEE2100A4743E /* XCRemoteSwiftPackageReference "swiftui-support" */;
30073010
productName = SwiftUISupport;
30083011
};
3012+
4BA2B1B32B86282D00E6DE64 /* BrightroomUIPhotosCrop */ = {
3013+
isa = XCSwiftPackageProductDependency;
3014+
productName = BrightroomUIPhotosCrop;
3015+
};
30093016
FC06C87E2A53AF4500215B89 /* BrightroomEngine */ = {
30103017
isa = XCSwiftPackageProductDependency;
30113018
productName = BrightroomEngine;

Dev/Brightroom.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Dev/Sources/SwiftUIDemo/ContentView.swift

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ struct ContentView: View {
77

88
@State private var fullScreenView: FullscreenIdentifiableView?
99

10-
@State var stack = Mocks.makeEditingStack(image: Mocks.imageHorizontal())
10+
@State var horizontalStack = Mocks.makeEditingStack(image: Mocks.imageHorizontal())
11+
@State var verticalStack = Mocks.makeEditingStack(image: Mocks.imageVertical())
1112

1213
var body: some View {
1314
NavigationView {
@@ -22,17 +23,33 @@ struct ContentView: View {
2223
}
2324
}
2425

25-
Section("Restoration") {
26+
Section("Restoration Horizontal") {
2627
Button("Crop") {
2728
fullScreenView = .init {
28-
DemoCropView(editingStack: { stack })
29+
DemoCropView(editingStack: { horizontalStack })
2930
}
3031
}
3132

3233
Button("Masking") {
3334
fullScreenView = .init {
3435
DemoMaskingView {
35-
stack
36+
horizontalStack
37+
}
38+
}
39+
}
40+
}
41+
42+
Section("Restoration Vertical") {
43+
Button("Crop") {
44+
fullScreenView = .init {
45+
DemoCropView(editingStack: { verticalStack })
46+
}
47+
}
48+
49+
Button("Masking") {
50+
fullScreenView = .init {
51+
DemoMaskingView {
52+
verticalStack
3653
}
3754
}
3855
}

0 commit comments

Comments
 (0)