Created
December 8, 2015 14:29
-
-
Save eofster/a0f768c53f17f0625966 to your computer and use it in GitHub Desktop.
GPS track summary view controller
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class TrackSummaryViewController: UIViewController { | |
@IBOutlet private(set) var nameLabel: UILabel! | |
@IBOutlet private(set) var dateLabel: UILabel! | |
@IBOutlet private(set) var distanceLabel: UILabel! | |
} | |
extension TrackSummaryViewController: TrackSummaryPresenterOutput { | |
func setName(name: String) { | |
nameLabel.text = name | |
} | |
func setDate(date: String) { | |
dateLabel.text = date | |
} | |
func setDistance(distance: String) { | |
distanceLabel.text = distance | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment