Post

Replies

Boosts

Views

Activity

Comment on 'UIScreen' is unavailable in visionOS, how to fix it? Is there anything to replace UIScreen?
on the VisionPro device, the width and height of the VisionPro window that I set is CGSize (7501200). At this time, the app displays the width and height of the size that I set. But when the password input box is clicked, the width of the custom keyboard my_keyboard that pops up is much wider than the width that I set, which is 750. The effect I want is that on the VisionPro device, the width of the custom keyboard displayed through inputView is the same as the width that I set.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’24
Comment on 'UIScreen' is unavailable in visionOS, how to fix it? Is there anything to replace UIScreen?
I would like to inquire about a question regarding the migration of iPhone code to VisionPro devices. There is a login scenario issue that I am unable to resolve. The login page has an input box called UItextfield, and I have customized the keyboard on the login page, textfield.inputview = my_keyboard, When the user inputs the password, the custom keyboard my_keyboard that pops up is displayed normally on the phone. The width of the custom keyboard is the same as the width of the phone screen.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’24