Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add warning to documentation for UIDevice.current.name #600

Open
kober32 opened this issue Jul 1, 2024 · 0 comments
Open

Add warning to documentation for UIDevice.current.name #600

kober32 opened this issue Jul 1, 2024 · 0 comments

Comments

@kober32
Copy link
Member

kober32 commented Jul 1, 2024

Since iOS 16, UIDevice.current.name can be accessed only when com.apple.developer.device-information.user-assigned-device-name entitlement is declared. Otherwise, this API returns a generic "iPhone" string.

We should reflect that in the documentation.


apple doc: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_device-information_user-assigned-device-name

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant