File tree Expand file tree Collapse file tree 4 files changed +148
-4
lines changed
Examples/ControllingLight
ControllingLight.xcodeproj
project.xcworkspace/xcshareddata/swiftpm Expand file tree Collapse file tree 4 files changed +148
-4
lines changed Original file line number Diff line number Diff line change 127127 Base,
128128 );
129129 mainGroup = 40185C352B1894200089E088;
130+ packageReferences = (
131+ 40B6E2C32B1BA51300E6A3A3 /* XCRemoteSwiftPackageReference "light-controls" */,
132+ );
130133 productRefGroup = 40185C3F2B1894200089E088 /* Products */;
131134 projectDirPath = "";
132135 projectRoot = "";
366369 };
367370/* End XCConfigurationList section */
368371
372+ /* Begin XCRemoteSwiftPackageReference section */
373+ 40B6E2C32B1BA51300E6A3A3 /* XCRemoteSwiftPackageReference "light-controls" */ = {
374+ isa = XCRemoteSwiftPackageReference;
375+ repositoryURL = "https://github.com/monstar-lab-oss/light-controls";
376+ requirement = {
377+ branch = main;
378+ kind = branch;
379+ };
380+ };
381+ /* End XCRemoteSwiftPackageReference section */
382+
369383/* Begin XCSwiftPackageProductDependency section */
370384 40EBD2A12B1B3CF800722B42 /* LightControls */ = {
371385 isa = XCSwiftPackageProductDependency;
Original file line number Diff line number Diff line change @@ -20,26 +20,34 @@ struct ContentView: View {
2020 . sheet ( isPresented: $isSheetPresented) {
2121 NavigationStack {
2222 List {
23- NavigationLink ( " DirectionalLight " ) {
23+ NavigationLink {
2424 DirectionalLightControl (
2525 light: arViewContainer. directionalLight
2626 )
2727 . navigationTitle ( " DirectionalLight " )
2828 . navigationBarTitleDisplayMode ( . inline)
29+ } label: {
30+ Label ( " DirectionalLight " , systemImage: " sun.max " )
2931 }
30- NavigationLink ( " PointLight " ) {
32+
33+ NavigationLink {
3134 PointLightControl (
3235 light: arViewContainer. pointLight
3336 )
3437 . navigationTitle ( " PointLight " )
3538 . navigationBarTitleDisplayMode ( . inline)
39+ } label: {
40+ Label ( " PointLight " , systemImage: " lightbulb.min " )
3641 }
37- NavigationLink ( " SpotLight " ) {
42+
43+ NavigationLink {
3844 SpotLightControl (
3945 light: arViewContainer. spotLight
4046 )
4147 . navigationTitle ( " SpotLight " )
4248 . navigationBarTitleDisplayMode ( . inline)
49+ } label: {
50+ Label ( " SpotLight " , systemImage: " lamp.desk " )
4351 }
4452 }
4553 }
Original file line number Diff line number Diff line change 11# LightControls
2- Control RealityKit iOS/macOS dynamic light controls
2+ A suite of SwiftUI components that expose RealityKits light properties for runtime customization.
33
44[ ![ Example] ( https://img.youtube.com/vi/jC6ehrGX7gE/hqdefault.jpg )] ( https://www.youtube.com/embed/jC6ehrGX7gE )
You can’t perform that action at this time.
0 commit comments