A clean and beginner-friendly iOS app built with SwiftUI, showcasing a list of famous landmarks with map views, descriptions, and favorite toggling.
This app displays a list of popular landmarks. Users can view detailed information, maps, and mark their favorite landmarks. Built with SwiftUI to demonstrate modern declarative UI designs.
- SwiftUI-based modern interface
- NavigationSplitView for responsive layout
- Interactive Map view for each landmark
- Favorite toggle support
- JSON data decoding using
Codable - Reusable components and clean architecture
- Swift 5 β Programming language used for app logic
- SwiftUI β Declarative UI framework for building the interface
- Xcode 15+ β Primary IDE for developing and testing the app
- MapKit β For displaying location and maps of landmarks
- MVVM Architecture β Clean separation of data, logic, and UI
- Codable & JSON Parsing β For loading and decoding landmark data
- NavigationSplitView β Adaptive UI for iPhone, iPad, and Mac
- SF Symbols β For using system icons
- Preview Providers β SwiftUI live previews for faster UI development
https://youtube.com/shorts/ljp4FdL7QFs?feature=share
- Load landmarks from local JSON
- Display them in a scrollable list
- Tap to view landmark details and map location
- Mark/unmark as favorite
- NavigationSplitView for iPad/Mac layout support
CategoryHome.swiftβ Main view with featured landmarksLandmarkList.swiftβ List of landmarks with navigationLandmarkDetail.swiftβ Detailed view with image, map, and textModelData.swiftβ Loads and parses landmark JSONAssets.xcassetsβ Landmark images and icons
- Clone the repository
- Open
Landmarks.xcodeprojin Xcode - Build and run the app using the iOS simulator or a physical device
β Requires Xcode 15+ and iOS 17 SDK or later
- MIT License
Feel free to fork, contribute, or extend this app with new features like:
- Remote data loading (e.g. from an API)
- Landmark categories or filters
- Dark mode support
- Persistent favorites with Core Data