Ios Location Button
Use CoreLocationUI LocationButton with .currentLocation or .sendMyCurrentLocation title variant to grant one-time location access for a single action, bypassing the standard When-In-Use authorization flow.
$ prime install @community/pattern-ios-location-button Projection
Always in _index.xml · the agent never has to ask for this.
IosLocationButton [pattern] v1.0.0
Use CoreLocationUI LocationButton with .currentLocation or .sendMyCurrentLocation title variant to grant one-time location access for a single action, bypassing the standard When-In-Use authorization flow.
Loaded when retrieval picks the atom as adjacent / supporting.
IosLocationButton [pattern] v1.0.0
Use CoreLocationUI LocationButton with .currentLocation or .sendMyCurrentLocation title variant to grant one-time location access for a single action, bypassing the standard When-In-Use authorization flow.
Label
iOS LocationButton for One-Time Location Access
Problem
Features that need the user's coordinates for a single action (find nearby stores, geotag a post) must request ongoing When-In-Use authorization, creating a privacy concern for users who don't want continuous tracking.
Solution
Import CoreLocationUI and use LocationButton(action:) in SwiftUI (or CLLocationButton in UIKit). Set a title variant (.currentLocation, .sendMyCurrentLocation) and labelStyle (.titleAndIcon). On tap, the system grants one-time location access without displaying the standard authorization dialog. No CLLocationManager authorization call is needed.
Loaded when retrieval picks the atom as a focal / direct hit.
IosLocationButton [pattern] v1.0.0
Use CoreLocationUI LocationButton with .currentLocation or .sendMyCurrentLocation title variant to grant one-time location access for a single action, bypassing the standard When-In-Use authorization flow.
Label
iOS LocationButton for One-Time Location Access
Problem
Features that need the user's coordinates for a single action (find nearby stores, geotag a post) must request ongoing When-In-Use authorization, creating a privacy concern for users who don't want continuous tracking.
Solution
Import CoreLocationUI and use LocationButton(action:) in SwiftUI (or CLLocationButton in UIKit). Set a title variant (.currentLocation, .sendMyCurrentLocation) and labelStyle (.titleAndIcon). On tap, the system grants one-time location access without displaying the standard authorization dialog. No CLLocationManager authorization call is needed.
Label
iOS LocationButton for One-Time Location Access
Problem
Features that need the user's coordinates for a single action (find nearby stores, geotag a post) must request ongoing When-In-Use authorization, creating a privacy concern for users who don't want continuous tracking.
Solution
Import CoreLocationUI and use LocationButton(action:) in SwiftUI (or CLLocationButton in UIKit). Set a title variant (.currentLocation, .sendMyCurrentLocation) and labelStyle (.titleAndIcon). On tap, the system grants one-time location access without displaying the standard authorization dialog. No CLLocationManager authorization call is needed.
Source
prime-system/examples/frontend-design/primes/compiled/@community/pattern-ios-location-button/atom.yaml