TechnologiesMaps & Location

CoreLocationUI

iOSmacOStvOSwatchOSvisionOS

CoreLocationUI provides CLLocationButton, a ready-made UI control that grants one-time location authorization when a person taps it. You add the button to your iOS or watchOS interface to request the user's location without first prompting for ongoing permission. Configure its appearance with CLLocationButtonIcon and CLLocationButtonLabel to present a system-standard icon and label that match the action you intend.

Location Button 1

The ready-made control that requests one-time location authorization when a person taps it.

  • Cl
    CLLocationButtoniOS 15.0+
    A button that grants one-time location authorization.

Button Appearance 2

Enumerations that configure the button's system-standard icon and label.

  • En
    CLLocationButtonIconiOS 15.0+
    Constants that specify styles for the location arrow icon on the button.
  • En
    CLLocationButtonLabeliOS 15.0+
    Constants that specify the text of the button label.

Structures 1

  • St
    LocationButton
    A SwiftUI button that grants one-time location authorization.

Type Aliases 26

  • Ty
    __Float16x4_t
  • Ty
    __Float16x8_t
  • Ty
    __Float32x2_t
  • Ty
    __Float32x4_t
  • Ty
    __Float64x2_t
  • Ty
    __Int16x4_t
  • Ty
    __Int16x8_t
  • Ty
    __Int32x2_t
  • Ty
    __Int32x4_t
  • Ty
    __Int64x2_t
  • Ty
    __Int8x16_t
  • Ty
    __Int8x8_t
  • Ty
    __NSConstantString
  • Ty
    __Poly16x4_t
  • Ty
    __Poly16x8_t
  • Ty
    __Poly64x2_t
Show 10 more
  • Ty
    __Poly8x16_t
  • Ty
    __Poly8x8_t
  • Ty
    __Uint16x4_t
  • Ty
    __Uint16x8_t
  • Ty
    __Uint32x2_t
  • Ty
    __Uint32x4_t
  • Ty
    __Uint64x2_t
  • Ty
    __Uint8x16_t
  • Ty
    __Uint8x8_t
  • Ty
    __builtin_ms_va_list
← Maps & Location