Icon

Backtrack

Hiking Companion App

App Concept

Backtrack is a work-in-progress iOS hiking app designed to help multi-day backpackers organise their hiking kit and minimize their pack weight on long hikes.

The Ultimate Backpacking Companion

Backtrack allows users to track the kit they are carrying on long-distance hiking trips and gain invaluable insights into their pack weight distribution. Key features include a kit library shared across trips, dynamic weight charts and iCloud sync.

Phone

Trip View

Phone

Kit Library

Phone

Weight Charts

Phone

Trips View

Phone

Welcome View

Phone

Item Details

Phone

Pack Contents

I started working on Backtrack following the release of the new SwiftData framework, a new alternative to the traditional CoreData workflow for data management in iOS apps. The project allowed me to get to grips with the new way of working, and I'm a huge fan of the comparable simplicity it offers!

Code Available on GitHub

Backtrack is built entirely in Swift and SwiftUI. A small sample of the code is shown below, and I've made the rest public on my GitHub.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 import SwiftUI // View showing information about a Trip object struct TripDetailsView: View { // The Trip being inspected @Bindable var trip: Trip // Has this trip been newly created? var newTrip = false // Closure to perform on saving the trip var onSubmit: (Trip) -> () = {_ in} @Environment(.presentationMode) var presentationMode var body: some View { NavigationStack { Form { HStack { Text("Name") Spacer() TextField("none", text: $trip.name) .multilineTextAlignment(.trailing) } .icon(systemName: "pencil.line") // ...

Back to Home Page

© Alasdair Casperd 2024