Post

Replies

Boosts

Views

Activity

Fixed background in visonOS
I successfully changed a picture to the background in ImmersiveSpace in a full state with the following code. import RealityKit struct MainBackground: View { var body: some View { RealityView { content in guard let resource = try? await TextureResource(named: "Image_Name") else { fatalError("Error.") } var material = UnlitMaterial() material.color = .init(texture: .init(resource)) let entity = Entity() entity.components.set(ModelComponent( mesh: .generateSphere(radius: 1000), materials: [material] )) entity.scale *= .init(x: -1, y: 1, z: 1) content.add(entity) } } } However, when running, I found that when the user moves, the background is not fixed, but follows the user's movement, which I feel unrealistic. How to fix the background in the place where it first appears, and give the user a kind of movement that is really like walking in the real world, instead of letting the background follow the user.
1
0
734
Dec ’23
Some question about visionOS
I have some question about visionOS: Does Apple open the eye tracking API to developers? If I want to know how to achieve it, when the eyes are stared at a specific View, a Boolean value can be changed to true, and when the eyes are removed from this View, it will become false. In ImmersiveSpace, when immersionStyle is .full or .progressive, a black background will appear by default. How can I turn this background into a panorama of my own? In ImmersiveSpace, how to make a View always follow the user?
2
0
703
Nov ’23
visionOS's "offset3D"
In visionOS, have many code with 3D attributes (SwiftUI) is adapted from the code in iOS, like: .padding(_:) to .padding3D(_:). In iOS have .offset(x:_, y:_), it only have X and Y, but in visionOS, view is in a 3D scene, so I want offset have Z, but offset can't use Z, so I try offset3D: import SwiftUI //Some View .offset3D(x: Number, y: Number, z: Number) Xcode report an error: Error: No member 'offset3D' So do you now how to use like offset's Modifiers, and can use Z in visionOS.
1
0
680
Nov ’23
UIKit in visionOS
The default framework of visionOS is SwiftUI, but it can also be combined with UIKit in SwiftUI, and Apple has also released video documents and other content for this purpose. But what I want to know is that SwiftUI is much simpler than UIKit, but why does Apple recommend developers to combine with UIKit in SwiftUI? I also want to know what are the advantages of SwiftUI and UIKit in visionOS? I hope you can reply to my two questions. Thank you!
1
0
902
Sep ’23
About Apple Vision Pro Developer Kit
It has been more than a month since I applied for the Apple Vision Pro Developer Kit in July, and there is still no answer. I didn't get much from asking Apple Developer Support. Just tell me to let I'm waiting. I hope to get some information provided by everyone, thank you 🙏! In Dev Kit Apply page: We’ve received your application. Thank you for your interest. We’ll get back to you soon with your status. If you wish to withdraw your application, you may do so.
1
2
945
Sep ’23
Fixed background in visonOS
I successfully changed a picture to the background in ImmersiveSpace in a full state with the following code. import RealityKit struct MainBackground: View { var body: some View { RealityView { content in guard let resource = try? await TextureResource(named: "Image_Name") else { fatalError("Error.") } var material = UnlitMaterial() material.color = .init(texture: .init(resource)) let entity = Entity() entity.components.set(ModelComponent( mesh: .generateSphere(radius: 1000), materials: [material] )) entity.scale *= .init(x: -1, y: 1, z: 1) content.add(entity) } } } However, when running, I found that when the user moves, the background is not fixed, but follows the user's movement, which I feel unrealistic. How to fix the background in the place where it first appears, and give the user a kind of movement that is really like walking in the real world, instead of letting the background follow the user.
Replies
1
Boosts
0
Views
734
Activity
Dec ’23
Some question about visionOS
I have some question about visionOS: Does Apple open the eye tracking API to developers? If I want to know how to achieve it, when the eyes are stared at a specific View, a Boolean value can be changed to true, and when the eyes are removed from this View, it will become false. In ImmersiveSpace, when immersionStyle is .full or .progressive, a black background will appear by default. How can I turn this background into a panorama of my own? In ImmersiveSpace, how to make a View always follow the user?
Replies
2
Boosts
0
Views
703
Activity
Nov ’23
visionOS's "offset3D"
In visionOS, have many code with 3D attributes (SwiftUI) is adapted from the code in iOS, like: .padding(_:) to .padding3D(_:). In iOS have .offset(x:_, y:_), it only have X and Y, but in visionOS, view is in a 3D scene, so I want offset have Z, but offset can't use Z, so I try offset3D: import SwiftUI //Some View .offset3D(x: Number, y: Number, z: Number) Xcode report an error: Error: No member 'offset3D' So do you now how to use like offset's Modifiers, and can use Z in visionOS.
Replies
1
Boosts
0
Views
680
Activity
Nov ’23
ImmersiveSpace, drag a specific view
In visionOS, in ImmersiveSpace, how to let users drag a specific view?
Replies
1
Boosts
0
Views
656
Activity
Nov ’23
TipKit with visionOS
Is TipKit compatible with visionOS?
Replies
1
Boosts
0
Views
720
Activity
Nov ’23
The framework in visionOS
What are the compatible frameworks with visionOS?
Replies
2
Boosts
0
Views
838
Activity
Nov ’23
visionOS with GroupActivities
In visionOS, in order to fully implement Group Activities, do we need to write additional code?
Replies
1
Boosts
0
Views
718
Activity
Nov ’23
Reputation of Apple Developer Program account
May I ask how to find the credibility of the Apple Developer Program account?
Replies
1
Boosts
0
Views
561
Activity
Oct ’23
visionOS Develop
If I learn all in https://developer.apple.com/visionos/planning/, can I master all the knowledge in visionOS development?
Replies
2
Boosts
0
Views
683
Activity
Sep ’23
UIKit in visionOS
The default framework of visionOS is SwiftUI, but it can also be combined with UIKit in SwiftUI, and Apple has also released video documents and other content for this purpose. But what I want to know is that SwiftUI is much simpler than UIKit, but why does Apple recommend developers to combine with UIKit in SwiftUI? I also want to know what are the advantages of SwiftUI and UIKit in visionOS? I hope you can reply to my two questions. Thank you!
Replies
1
Boosts
0
Views
902
Activity
Sep ’23
Join the Apple developer program with the same identity
I now have a developer account to join the Apple developer program. Now I want to add a new developer account to the Apple developer program (with the same identity) without my original account being affected. What should I do?
Replies
0
Boosts
0
Views
434
Activity
Sep ’23
Join the Apple developer program with the same identity
I now have a developer account to join the Apple developer program. Now I want to add a new developer account to the Apple developer program (with the same identity) without my original account being affected. What should I do?
Replies
0
Boosts
0
Views
440
Activity
Sep ’23
SwiftUI in visionOS
What statements have been added to SwiftUI in visionOS development compared with the original SwiftUI?
Replies
2
Boosts
0
Views
726
Activity
Sep ’23
About Apple Vision Pro Developer Kit
Does anyone have any latest news about the Apple Vision Pro Developer Kit? Developer Kit Link
Replies
1
Boosts
0
Views
734
Activity
Sep ’23
About Apple Vision Pro Developer Kit
It has been more than a month since I applied for the Apple Vision Pro Developer Kit in July, and there is still no answer. I didn't get much from asking Apple Developer Support. Just tell me to let I'm waiting. I hope to get some information provided by everyone, thank you 🙏! In Dev Kit Apply page: We’ve received your application. Thank you for your interest. We’ll get back to you soon with your status. If you wish to withdraw your application, you may do so.
Replies
1
Boosts
2
Views
945
Activity
Sep ’23