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 DetailNoteViewController: UIViewController { | |
| @IBOutlet var titleLbl: UILabel! | |
| @IBOutlet var descLbl: UILabel! | |
| @IBOutlet var dateLbl: UILabel! | |
| @IBOutlet var iconImg: UIImageView! | |
| var note: Note! | |
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 Foundation | |
| class TableViewController: UITableViewController { | |
| let updateSound = URL(fileURLWithPath: Bundle.main.path(forResource: "update", ofType: "mp3")!) | |
| var audioPlayer = AVAudioPlayer() | |
| var refreshCntrl:UIRefreshControl! | |
| var items: [Note] = [] | |
| // MARK: - Life cycle |
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 | |
| struct Note { | |
| var title: String | |
| let shortDesc: String | |
| let fullDesc: String | |
| let createdTime: Date | |
| let img: String | |
| var formattedDate: String { |
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 | |
| @IBDesignable class NoteCell: UITableViewCell { | |
| static let nibName = "NoteCell" | |
| static let cellID = "NoteCell" | |
| @IBOutlet var titleLbl: UILabel! | |
| @IBOutlet var descLbl: UILabel! | |
| @IBOutlet var dateLbl: UILabel! | |
| @IBOutlet var iconImg: UIImageView! |