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