Post

Replies

Boosts

Views

Activity

Reply to Xcode 13.2 Instantiating CLLocationButton crashes in Simulator
Thank you for your fast response. The code I didn't supply was: private var userLocationButton: CLLocationButton! the setupUserLocationButton func is called in viewDidLoad Style.CornerRadius.double is CGFloat = 10.0 and the themeColor is a dark blue I'm also using Xcode 13.2 (13C90) from the Developer website (never using the App Store version) with your exact code and assigning "userLocationButton = button", it still crashes when run in the Simulator with: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: width && height' terminating with uncaught exception of type NSException CoreSimulator 783.5 - Device: iPhone 13 () - Runtime: iOS 15.2 (19C51) - DeviceType: iPhone 13
Dec ’21