Meet the Location Button

RSS for tag

Discuss the WWDC21 session Meet the Location Button.

View Session

Posts under wwdc21-10102 tag

9 Posts
Sort by:
Post not yet marked as solved
5 Replies
732 Views
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
Posted Last updated
.
Post not yet marked as solved
1 Replies
207 Views
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?
Posted
by andre07.
Last updated
.
Post not yet marked as solved
0 Replies
129 Views
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!
Posted Last updated
.
Post marked as Apple Recommended
2.3k Views
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?
Posted
by slzh.
Last updated
.
Post not yet marked as solved
0 Replies
363 Views
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?
Posted Last updated
.
Post not yet marked as solved
0 Replies
502 Views
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.
Posted
by pjp.
Last updated
.