Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
SWE-12 Use a nice slick animation
- it appears that as a result of setting the target membership of `PaymentDetailInterfaceController` to only WKExtension has enabled this function call which was not working before
  • Loading branch information
ahm11003 committed Mar 29, 2019
1 parent 0e76bcc commit 1b1aadd
Showing 1 changed file with 5 additions and 7 deletions.
Expand Up @@ -43,13 +43,11 @@ class PaymentDetailInterfaceController: WKInterfaceController {
self.popToRootController()
}
} else {
// animate(withDuration: 0.75) {
// self.paymentButton.setBackgroundColor(UIColor.init(red: 141, green: 241, blue: 48, alpha: 1.0))
// }
paymentButton.setBackgroundColor(#colorLiteral(red: 0.6092301607, green: 0.9366738796, blue: 0.2432599962, alpha: 1))
paymentButtonArmed = true
paymentButton.setTitle("Pay Now")
animate(withDuration: 0.5) {
self.paymentButton.setBackgroundColor(#colorLiteral(red: 0.6092301607, green: 0.9366738796, blue: 0.2432599962, alpha: 1))
self.paymentButtonArmed = true
self.paymentButton.setTitle("Pay Now")
}
}
}

Expand Down

0 comments on commit 1b1aadd

Please sign in to comment.