Skip to content

Commit 2749fc5

Browse files
committed
wip
1 parent d7e8d29 commit 2749fc5

File tree

10 files changed

+120
-85
lines changed

10 files changed

+120
-85
lines changed

Examples/ControllingLight/ControllingLight.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
40185C442B1894200089E088 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 40185C432B1894200089E088 /* ContentView.swift */; };
1212
40185C462B1894220089E088 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 40185C452B1894220089E088 /* Assets.xcassets */; };
1313
40185C492B1894220089E088 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 40185C482B1894220089E088 /* Preview Assets.xcassets */; };
14-
40185C532B18C7A20089E088 /* DirectionalLightControl in Frameworks */ = {isa = PBXBuildFile; productRef = 40185C522B18C7A20089E088 /* DirectionalLightControl */; };
1514
40185C552B18DEAC0089E088 /* robot_walk_idle.usdz in Resources */ = {isa = PBXBuildFile; fileRef = 40185C542B18DEAC0089E088 /* robot_walk_idle.usdz */; };
15+
40EBD2A22B1B3CF800722B42 /* LightControls in Frameworks */ = {isa = PBXBuildFile; productRef = 40EBD2A12B1B3CF800722B42 /* LightControls */; };
1616
/* End PBXBuildFile section */
1717

1818
/* Begin PBXFileReference section */
@@ -29,7 +29,7 @@
2929
isa = PBXFrameworksBuildPhase;
3030
buildActionMask = 2147483647;
3131
files = (
32-
40185C532B18C7A20089E088 /* DirectionalLightControl in Frameworks */,
32+
40EBD2A22B1B3CF800722B42 /* LightControls in Frameworks */,
3333
);
3434
runOnlyForDeploymentPostprocessing = 0;
3535
};
@@ -97,7 +97,7 @@
9797
);
9898
name = ControllingLight;
9999
packageProductDependencies = (
100-
40185C522B18C7A20089E088 /* DirectionalLightControl */,
100+
40EBD2A12B1B3CF800722B42 /* LightControls */,
101101
);
102102
productName = ControllingLiight;
103103
productReference = 40185C3E2B1894200089E088 /* ControllingLight.app */;
@@ -367,9 +367,9 @@
367367
/* End XCConfigurationList section */
368368

369369
/* Begin XCSwiftPackageProductDependency section */
370-
40185C522B18C7A20089E088 /* DirectionalLightControl */ = {
370+
40EBD2A12B1B3CF800722B42 /* LightControls */ = {
371371
isa = XCSwiftPackageProductDependency;
372-
productName = DirectionalLightControl;
372+
productName = LightControls;
373373
};
374374
/* End XCSwiftPackageProductDependency section */
375375
};

Examples/ControllingLight/ControllingLight/ContentView.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Created by Cristian Díaz on 30.11.23.
66
//
77

8-
import DirectionalLightControl
8+
import LightControls
99
import RealityKit
1010
import SwiftUI
1111

@@ -21,21 +21,21 @@ struct ContentView: View {
2121
NavigationStack {
2222
List {
2323
NavigationLink("DirectionalLight") {
24-
DirectionalLightControlView(
24+
DirectionalLightControl(
2525
light: arViewContainer.directionalLight
2626
)
2727
.navigationTitle("DirectionalLight")
2828
.navigationBarTitleDisplayMode(.inline)
2929
}
3030
NavigationLink("PointLight") {
31-
PointLightControlView(
31+
PointLightControl(
3232
light: arViewContainer.pointLight
3333
)
3434
.navigationTitle("PointLight")
3535
.navigationBarTitleDisplayMode(.inline)
3636
}
3737
NavigationLink("SpotLight") {
38-
SpotLightControlView(
38+
SpotLightControl(
3939
light: arViewContainer.spotLight
4040
)
4141
.navigationTitle("SpotLight")
@@ -86,11 +86,11 @@ struct ARViewContainer: UIViewRepresentable {
8686

8787
// Add lights
8888
anchor.addChild(directionalLight)
89-
89+
9090
pointLight.transform.translation.x = -0.25
9191
pointLight.transform.translation.y = 0.25
9292
anchor.addChild(pointLight)
93-
93+
9494
spotLight.transform.translation.x = 0.25
9595
spotLight.transform.translation.y = 0.5
9696
anchor.addChild(spotLight)

LightControls.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ let package = Package(
1010
],
1111
products: [
1212
.library(
13-
name: "DirectionalLightControl",
14-
targets: ["DirectionalLightControl"]
13+
name: "LightControls",
14+
targets: ["LightControls"]
1515
)
1616
],
1717
dependencies: [
@@ -22,7 +22,7 @@ let package = Package(
2222
],
2323
targets: [
2424
.target(
25-
name: "DirectionalLightControl",
25+
name: "LightControls",
2626
dependencies: [
2727
.product(name: "ComposableArchitecture", package: "swift-composable-architecture"),
2828
"Models",
File renamed without changes.

0 commit comments

Comments
 (0)