An iOS app that fetches the geolocation of a given IP address and displays it on a map using Apple's MapKit.
- Fetches geolocation data from public IP using a REST API
- Displays location on the map using MapKit
- Built with Swift and UIKit
- Simple, clean UI
- Error handling for invalid IPs or network issues
- macOS with Xcode 14 or later
- iOS 15+ SDK
git clone https://github.com/mohammadgdz/iNetwork.git
cd iNetwork
open iNetwork.xcodeprojThen build and run the app on the simulator or a real device.
- User enters an IP address (or uses the default public IP)
- The app calls a geolocation API (e.g.
ip-api.com) - The response is parsed using Swift's
Codable - Location is displayed on a
MapView
The app uses ip-api.com for IP geolocation.
- Example endpoint:
http://ip-api.com/json/{ip}
No API key required.
- Add unit tests and UI tests
- Save recent IP lookups
- Support dark mode and localization
- SwiftUI support (optional)
Contributions are welcome!
- Fork this repository
- Create a feature branch (
git checkout -b feature-name) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature-name) - Open a Pull Request
Developed by @mohammadgdz Feel free to reach out via GitHub or open an issue!
This project is licensed under the MIT License. See the LICENSE file for details.