CLLocationButton not work for Chinese Simplified localization.

CLLocationButton not work for Chinese Simplified localization.

Could you explain precisely what does not work ? And show code so that someone can test it ?

The xcode project adds Chinese Simplified localization, device language and region switch to Chinese Simplified/China Mainland, then CLLocationButton does not display the label and icon, and the dialog box will not be displayed when clicked.

If you switch to en, everything works fine.

import UIKit import CoreLocationUI class ViewController: UIViewController {  override func viewDidLoad() {   super.viewDidLoad()       let button = CLLocationButton(frame: CGRect(origin: CGPoint(x: 10, y: 60), size: CGSize(width: 200, height: 44)))   button.icon = .arrowFilled   button.label = .currentLocation   button.cornerRadius = 12.0   view.addSubview(button)  } }

The xcode project adds Chinese Simplified localization, device language and region switch to Chinese Simplified/China Mainland, then CLLocationButton does not display the label and icon, and the dialog box will not be displayed when clicked.

If you switch to en, everything works fine.

import UIKit
import CoreLocationUI

class ViewController: UIViewController {

 override func viewDidLoad() {
  super.viewDidLoad()
   
  let button = CLLocationButton(frame: CGRect(origin: CGPoint(x: 10, y: 60), size: CGSize(width: 200, height: 44)))
  button.icon = .arrowFilled
  button.label = .currentLocation
  button.cornerRadius = 12.0
  view.addSubview(button)
 }
}
CLLocationButton not work for Chinese Simplified localization.
 
 
Q