LocationPicker

2.0

A SwiftUI view for interactive geographic coordinates input.
alessiorubicini/LocationPickerForSwiftUI

What's New

2.0

2025-09-17T10:01:24Z

Welcome to LocationPickerForSwiftUI version 2.0!

  • Complete Redesign: The component has undergone a thorough redesign, allowing it to function independently of your app’s navigation context. Now, you can seamlessly integrate LocationPicker into various components, such as forms, modal sheets, or full-screen covers, without any restrictions. You have the flexibility to select the desired navigation context.
  • iOS 26 Support: The package has been re-built using Xcode 26.0, ensuring compatibility with the latest Apple OS updates. The coordinates label now boasts a sleek and modern liquid glass appearance.

If you have any questions, ideas, or encounter any issues, don’t hesitate to open an issue on GitHub.

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.

Description

  • Swift Tools 5.5.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Sep 28 2025 11:50:43 GMT-0900 (Hawaii-Aleutian Daylight Time)