same issue any update ?
Post
Replies
Boosts
Views
Activity
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)
}
}
I also encountered the same problem, can anyone help?
Same issues for me, simply incredible.
I gave up StoreKit 2 and everything is working fine now.
Same problem here, any update?