I want to add a feature where I can buy subscription for my friends or family members that are using same app
Post
Replies
Boosts
Views
Activity
I want to present a view in trailing area of a view and on presented view I need to navigate on other views like push other items but those views will have a 1280 / full width
I have presented view as sheet but its coming at centre of screen and detail views after sheet are having same width as sheet had
for example if user press how it works than the new view that is being pushed to stack will have full width not the width that sheet have
I want to play media file in immersive view and when user switched the tab I want to switch to different immersive space that play different media file
I am playing immersive video as shown in picture but it displays black screen until videos get loaded
and here is when video gets loaded
here is code snippet
struct ImmersiveMeditationPlayerView: View {
@Environment(\.dismissImmersiveSpace) private var dismissImmersiveSpace
@Environment(\.openWindow) private var openWindow
let player = AVPlayer()
init() {
Logger.shared.log(message: "IMERSIVE VIEW INSIDE")
}
var body: some View {
VStack {
RealityView { content, attachments in
//Create Entity for the video
let videoEntity = Entity()
let url = URL(string: "https://videoc2CIarRqKp")!
let asset = AVURLAsset(url: url)
let playerItem = AVPlayerItem(asset: asset)
//create a videoMaterial
let material = VideoMaterial(avPlayer: player)
//Made a Sphere with the videoEntity and asign the videoMaterial to it
videoEntity.components.set(ModelComponent(mesh: .generateSphere(radius: 1E3), materials: [material]))
//adjust the properties of the videoEntity(Sphere) if needed
videoEntity.scale = .init(x: 1, y: 1, z: -1)
videoEntity.transform.translation += SIMD3<Float>(0.0, 10.0, 0.0)
let angle = Angle.degrees(90)
let rotation = simd_quatf(angle: Float(angle.radians), axis: .init(x: 0, y: 0, z: 0))
videoEntity.transform.rotation = rotation
//add VideoEntity to realityView
content.add(videoEntity)
//start the VideoPlayer
player.replaceCurrentItem(with: playerItem)
player.play()
}
attachments: {
Attachment(id: "myMeditationBuilderView") {
}
}
}
I have opened an immersive space and I want to hide window (not dismiss) from user and show it again when immersive space is closed
I have created menu but I want to expand submenu from right side of parent which is not happening in my case as shown in screen shot below
Menu {
Menu{
Button
Button
}
} label {
Text("")
Image("")
}
I am trying add Sign in with Apple but when I attempt to capability in my app nothing happens in the list
does apple not able to provide this feature yet in Vision OS or is there any bug or may be ami missing something which does not seems?
I want to add this button with some space in a tab bar I don't know what this button is called and how to add it in Vision Pro app
I am trying to add capabilities in my Vision OS application but ending up in failure it doesn't add any with out any error or notifications is Apple disabled this feature or potentially a BUG