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
| func setup(date: Date) { | |
| self.date = date | |
| updateInterface() // Setup view with strings, colours, etc. | |
| } |
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
| init(date: Date, frame: CGRect) { | |
| super.init(frame: frame) | |
| // Do stuff with Date | |
| } |
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
| internal var oldImageUrl: URL? { | |
| return URL(string: carImageUrl ?? "") | |
| } | |
| internal var newImageUrl: URL? { | |
| let urlString = Constants.URL.images | |
| .replacingOccurrences(of: "{modelIdentifier}", with: modelIdentifier ?? "") | |
| .replacingOccurrences(of: "{color}", with: color ?? "") | |
| return URL(string: urlString) |
NewerOlder