Meet the Location Button

RSS for tag

Discuss the WWDC21 session Meet the Location Button.

Posts under wwdc21-10102 tag

9 Posts

Post

Replies

Boosts

Views

Activity

Xcode 13.2 Instantiating CLLocationButton crashes in Simulator
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
5
0
2.2k
Apr ’22
Geolocation Settings Restrictions
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!
0
0
864
Mar ’22
Xcode Location Simulator
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.
0
0
881
Jul ’21
Xcode 13.2 Instantiating CLLocationButton crashes in Simulator
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
Replies
5
Boosts
0
Views
2.2k
Activity
Apr ’22
CLLocationButton - not working with other device language
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?
Replies
1
Boosts
0
Views
1.4k
Activity
Mar ’22
Geolocation Settings Restrictions
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!
Replies
0
Boosts
0
Views
864
Activity
Mar ’22
Customize LocationButton
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?
Replies
0
Boosts
0
Views
733
Activity
Mar ’22
What is a Location Push Service Extension?
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?
Replies
4
Boosts
0
Views
5.6k
Activity
Feb ’22
CLLocationButton not work for Chinese Simplified localization.
CLLocationButton not work for Chinese Simplified localization.
Replies
3
Boosts
0
Views
812
Activity
Dec ’21
Using CLLocation Button for When in Use Authorisation
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?
Replies
0
Boosts
0
Views
685
Activity
Nov ’21
Error Domain=kCLErrorDomain Code=1 "(null)"
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?
Replies
0
Boosts
0
Views
2.1k
Activity
Aug ’21
Xcode Location Simulator
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.
Replies
0
Boosts
0
Views
881
Activity
Jul ’21