mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-28 02:20:54 +01:00
46 lines
871 B
Swift
46 lines
871 B
Swift
//
|
|
// DetailViewController.swift
|
|
// Evergreen-iOS
|
|
//
|
|
// Created by Brent Simmons on 2/5/18.
|
|
// Copyright © 2018 Ranchero Software. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
class DetailViewController: UIViewController {
|
|
|
|
@IBOutlet weak var detailDescriptionLabel: UILabel!
|
|
|
|
|
|
func configureView() {
|
|
// Update the user interface for the detail item.
|
|
if let detail = detailItem {
|
|
if let label = detailDescriptionLabel {
|
|
label.text = detail.description
|
|
}
|
|
}
|
|
}
|
|
|
|
override func viewDidLoad() {
|
|
super.viewDidLoad()
|
|
// Do any additional setup after loading the view, typically from a nib.
|
|
configureView()
|
|
}
|
|
|
|
override func didReceiveMemoryWarning() {
|
|
super.didReceiveMemoryWarning()
|
|
// Dispose of any resources that can be recreated.
|
|
}
|
|
|
|
var detailItem: NSDate? {
|
|
didSet {
|
|
// Update the view.
|
|
configureView()
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
|