Skip to content

Commit

Permalink
Update the iOS animation and add new screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
romainhuet committed Aug 4, 2017
1 parent 9fd3db0 commit 6894602
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ Go to http://localhost:3000 in your browser to start using the app.

## iOS App for Passengers

The Rocket Rides iOS app is written in Swift and is built using the [Stripe iOS SDK](https://github.com/stripe/stripe-ios) to accept both card payments and Apple Pay.
The Rocket Rides iOS app is written in Swift and is built using the [Stripe iOS SDK](https://github.com/stripe/stripe-ios) to accept both card payments and Apple Pay.

<img src="server/public/images/screenshots/rocketrides-ios-ride.png" width="296"><img src="server/public/images/screenshots/rocketrides-ios-location.png" width="296"><img src="server/public/images/screenshots/rocketrides-ios-payment.png" width="296">

### Requirements

This project is written in Swift and requires Xcode 8 to build and run. The app is compatible with iOS 10.0+. You can use it both the iOS Simulator or on your iPhone.
This project is written in Swift and requires Xcode 8 to build and run, and [CocoaPods](https://guides.cocoapods.org/using/getting-started.html) to install the dependencies. The app is compatible with iOS 10.0+. You can use it both the iOS Simulator or on your iPhone.

### Getting Started

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"idiom" : "universal",
"filename" : "Jetpack.pdf"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
Binary file not shown.
5 changes: 4 additions & 1 deletion ios/RocketRides/RideRequestViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,10 @@ class RideRequestViewController: UIViewController, STPPaymentContextDelegate, Lo
let identifier = "rocketPointAnnotation"

let annotationView = mapView.dequeueReusableAnnotationView(withIdentifier: identifier) ?? MKAnnotationView(annotation: annotation, reuseIdentifier: identifier)
annotationView.image = #imageLiteral(resourceName: "Pilot")
annotationView.image = #imageLiteral(resourceName: "Jetpack")
if Double((destinationPlacemark?.coordinate.longitude)!) - Double((pickupPlacemark?.coordinate.longitude)!) < 0 {
annotationView.transform = CGAffineTransform(scaleX: -1, y: 1)
}

return annotationView
}
Expand Down
Binary file removed ios/screenshots.png
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6894602

Please sign in to comment.