Skip to content
Permalink
433ebacb56
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
35 lines (29 sloc) 1015 Bytes
//
// GoodAccountsInterfaceController.swift
// SynchronyFinancial WatchKit Extension
//
// Created by Alan Maynard on 4/23/19.
// Copyright © 2019 Alan Maynard. All rights reserved.
//
import WatchKit
import Foundation
class HealthyAccountsInterfaceController: WKInterfaceController {
@IBOutlet var healthyCountLabel: WKInterfaceLabel!
override func awake(withContext context: Any?) {
super.awake(withContext: context)
guard let data = context as? Int else {
NSLog("Error getting healthy account count.")
return
}
healthyCountLabel.setText("\(data)")
}
override func didAppear() {
super.didAppear()
animate(withDuration: 1.5) {
self.healthyCountLabel.setAlpha(1.0)
}
}
@IBAction func showDetails() {
presentAlert(withTitle: "Healthy Accounts", message: Defaults.HEALTHY_ACCTS, preferredStyle: .alert, actions: [WKAlertAction(title: "Done", style: .default, handler: {})])
}
}