Post not yet marked as solved
Since updating to Xcode 13.2 (13C90) my App crashes instantly when instantiating a CLLocationButton, but this only happens when running the App in the Simulator.
My setup code looks as follows:
let button = CLLocationButton()
button.icon = .arrowOutline
button.label = .none
button.cornerRadius = Style.CornerRadius.double
button.backgroundColor = .white
button.tintColor = ColorCatalog.Colors.themeColor.color
button.addTarget(self, action: #selector(userLocationButtonTapped), for: .touchUpInside)
userLocationButton = button
view.addSubview(userLocationButton)
// setting up constraints for CLLocationButton to be on the top right corner
button.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
button.topAnchor.constraint(equalTo: view.safeAreaLayoutGuide.topAnchor, constant: 16.0),
button.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor, constant: -16.0)
])
}
On Xcode 13.1, this works just fine.
On Xcode 13.2 I get this exception when run in the Simulator:
In the console it prints:
2021-12-14 13:02:13.003747+0100 appname[9412:217536] *** Assertion failure in CGImageRef _Nonnull UISCreateImageFromDrawing(__strong id _Nonnull, CGFloat, UISDisplayRange)(), UISDrawing.m:19
Post not yet marked as solved
I wanted to use the new CLLocationButton.
It works fine as long as the iPhone language is set to English, but when I change it to German, the button is empty and not presenting the location access message anymore.
I already filed a feedback: FB9951235
Are there any workarounds?
Post not yet marked as solved
We are trying to make some updates to our app, but we're unsure on a geolocation functionality, so would appreciate any input from anyone who's been through the same.
We'd like to limit some interactions on our app by requesting users to turn on their phone's location settings. This means that a few features wouldn't be available to a user if they don't have these settings on (for fraud prevention).
i.e. You can only share your live location on whatsapp if you have your phone's locations settings on, but this doesn't limit you from using the rest.
Does anyone know if this would infringe Apples's Data Collection Guidelines (section 5.1.1.iv)?
Thanks!
Post not yet marked as solved
Hello, I'm trying to change the size of the LocationButton but I couldn't. I'm using SwiftUI is there any way I can change the size if yes please tell me how?
Post marked as Apple Recommended
There's new API and some header documentation for "Location Push Service Extension"s.
I haven't seen any sessions related to Core Location scheduled beyond Meet the Location Button
Is there any documentation for this I have missed?
Post not yet marked as solved
CLLocationButton not work for Chinese Simplified localization.
Post not yet marked as solved
Hello, Our app requires When in Use Authorisation to work. Is it a good head to use CLLocationButton to ask for this Authorisation for iOS 15 users?
We tried using this button but it only shows only two options OK and Not Now as shown in this pic. Is it possible to show When in Use Authorisation here?
Post not yet marked as solved
I get
Error Domain=kCLErrorDomain Code=1 "(null)" in the Xcode console when a start to update for location. This does not happen in the example app, so I'm wondering what I might have done wrong?
Post not yet marked as solved
Hi! I am doing a project with location simulators, and I am trying to figure out how to simulate my location with latitude longitude coordinates via Xcode. I am able to do so with a GPX file, but my location returns to its actual one after a few hours. Is there a way to hardcode it into the system to stay intact until the phone is reset or for n amount of hours? I would like my location to only be accessed when I allow it, specifically through find my. Thank you for any help in advance.