Skip to content

msadoon/iOS-Bikeshare-Widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOS-Bikeshare-Widget

Nov 2021 SwiftUIJam Entry Note

  • The widget of this app was created in the first jam entry this year.
  • This entry is the supporting in-app functionality.

Image Preview

API

https://tor.publicbikesystem.net/ube/gbfs/v1/en/station_information

Instructions

  1. git clone this repo and checkout master. We used Xcode 13.1 to build and run.
  2. Launch the bikeshare-widget scheme to the device

Here's a demo of how to use the app on device.

Not working/needs fixing:

  • Station list is emptied after selecting one station from the list.
  • Unsure how denying location services on first launch of app/widget would be handled gracefully.
  • Unsure how denying location services after first launch of app/widget would be handled gracefully.
  • Unsure how app would behave if backgrounded and opened by widget.
  • MapKit and overlays with directions doesn't seem to be supported yet on SwiftUI, which is why it had to be a UIViewRepresentable (limiting its' updates to Binding as opposed to ObservedObject or EnvironmentObject). Take a look at possible refactors after routes can be added through SwiftUI.

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages