devicekit / DeviceKit

DeviceKit is a value-type replacement of UIDevice.
MIT License
4.39k stars 425 forks source link

iPhone XR #395

Closed lipopli closed 4 months ago

lipopli commented 4 months ago

case .iPhoneXR: return "iPhone Xʀ" 这个“ʀ”的字符有问题,应该是"iPhone XR" ,导致我的网络请求header 里认不出来,网络请求错误

Zandor300 commented 4 months ago

Rough Google Translate, please communicate in English:

case .iPhoneXR: return "iPhone Xʀ" There is something wrong with the "ʀ" character. It should be "iPhone

This is done on purpose. If you don't like this behavior, the .safeDescription property is available where these special characters aren't used.

lipopli commented 3 months ago

Thanks, use Device.current.safeDescription solve it!