Skip to content

alessiorubicini/LocationPickerForSwiftUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Package Logo

Location Picker for SwiftUI

LocationPicker for SwiftUI is a Swift package that provides an easy-to-use SwiftUI view for interactive input of geographic coordinates.

Overview

LocationPicker is a lightweight SwiftUI component for selecting geographic coordinates with Apple Maps. Present it in a sheet or navigation flow, let users tap to drop a pin, and receive live coordinate updates via a simple binding.

Preview

Features

  • SwiftUI-first: Drop-in view that fits sheets, forms, and navigation flows.
  • Interactive map: Tap to select a point; pin animates into place.
  • Live coordinates: Selected latitude/longitude always visible.
  • Zero dependencies: Built on MapKit and SwiftUI.

Requirements

  • iOS: 15.0+
  • Swift: 5.7+
  • Xcode: 13.0+

Installation (Swift Package Manager)

  1. In Xcode, go to File > Add Package Dependencies….
  2. Enter the repository URL: https://github.com/alessiorubicini/LocationPickerForSwiftUI.
  3. Select the version or branch you prefer and add the package to your target.

Support

Questions, ideas, or issues? Feel free to open an issue on GitHub.

License

MIT © 2022–present Alessio Rubicini. See LICENSE for details.

About

A SwiftUI view for interactive geographic coordinates input.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages