Last active
April 4, 2020 06:52
-
-
Save zafarivaev/877af46eed0a6e407dceb2d063aa80cf to your computer and use it in GitHub Desktop.
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 | |
struct HolidayViewModel { | |
let didClose = PublishSubject<Void>() | |
let title: String | |
let date: String | |
let country: String | |
let isPublic: Bool | |
init(holiday: Holiday) { | |
self.title = holiday.name! | |
self.date = holiday.date! | |
self.country = holiday.country! | |
self.isPublic = holiday.public! | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment