-
Notifications
You must be signed in to change notification settings - Fork 425
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
SF Symbol name for device #280
Comments
Hahah, that would be a nice feature 😅. @Zandor300 what do you think? |
@denisenepraunig var sfSymbolName: String {
if isPhone {
return hasRoundedDisplayCorners ? "iphone" : "iphone.homebutton"
} else {
return hasRoundedDisplayCorners ? "ipad" : "ipad.homebutton"
}
} |
Great idea, let's not forget Macs and Apple TVs |
hi, UPDATE: is now possibile using |
This feature has been added in this project: GitHub.com/kudit/Device |
It would be great if DeviceKit could return the name of the correct SF symbol for a device.
For example:
So, an iPhone 8 or earlier would return
iphone.homebutton
and home buttonless phones would returniphone
and so forth…iphone
iphone.homebutton
ipad
ipad.homebutton
The text was updated successfully, but these errors were encountered: