Skip to content

Instantly share code, notes, and snippets.

@zafarivaev
Last active April 4, 2020 06:52
Show Gist options
  • Save zafarivaev/877af46eed0a6e407dceb2d063aa80cf to your computer and use it in GitHub Desktop.
Save zafarivaev/877af46eed0a6e407dceb2d063aa80cf to your computer and use it in GitHub Desktop.
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