<!--
{
  "availability" : [
    "iOS: 15.0 -",
    "iPadOS: 15.0 -",
    "macCatalyst: 15.0 -",
    "watchOS: 10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreLocationUI",
  "identifier" : "/documentation/CoreLocationUI",
  "metadataVersion" : "0.1.0",
  "role" : "Framework",
  "symbol" : {
    "kind" : "Framework",
    "modules" : [
      "CoreLocationUI"
    ],
    "preciseIdentifier" : "CoreLocationUI"
  },
  "title" : "CoreLocationUI"
}
-->

# CoreLocationUI

Streamline access to users’ location data through a standard, secure UI.

## Overview

The CoreLocationUI framework contains a standardized UI that interacts securely
with <doc://com.apple.documentation/documentation/CoreLocation> to request authorization to access location data.

CoreLocationUI provides [`LocationButton`](/documentation/CoreLocationUI/LocationButton) for SwiftUI apps and [`CLLocationButton`](/documentation/CoreLocationUI/CLLocationButton)
for UIKit apps. Add these buttons to your UI when you want someone to grant one-time
authorization for your app to fetch their location. The button’s style is consistent
with the standard Core Location design language, giving users a sense of familiarity
and trust when they interact with it.

> Note: The location button ignores user input on Mac apps built with Mac Catalyst, and on compatible iPad and iPhone apps running in visionOS.

## Topics

### Location authorization

[Sharing Your Location to Find a Park](/documentation/CoreLocationUI/sharing-your-location-to-find-a-park)

Ask for location access using a customizable location button.

[`LocationButton`](/documentation/CoreLocationUI/LocationButton)

A SwiftUI button that grants one-time location authorization.

[`CLLocationButton`](/documentation/CoreLocationUI/CLLocationButton)

A button that grants one-time location authorization.

### Button customization

[`CLLocationButtonIcon`](/documentation/CoreLocationUI/CLLocationButtonIcon)

Constants that specify styles for the location arrow icon on the button.

[`CLLocationButtonLabel`](/documentation/CoreLocationUI/CLLocationButtonLabel)

Constants that specify the text of the button label.

### Framework version

[`CoreLocationUIVersionNumber`](/documentation/CoreLocationUI/CoreLocationUIVersionNumber)

The project version number for CoreLocationUI.

[`CoreLocationUIVersionString`](/documentation/CoreLocationUI/CoreLocationUIVersionString)

The project version string for CoreLocationUI.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)