Skip to content

Instantly share code, notes, and snippets.

@Rashidium
Last active January 26, 2021 15:19
Show Gist options
  • Select an option

  • Save Rashidium/58549256563ab4d16c259f7b89d24359 to your computer and use it in GitHub Desktop.

Select an option

Save Rashidium/58549256563ab4d16c259f7b89d24359 to your computer and use it in GitHub Desktop.
FeedModels
import Foundation
import API
// swiftlint:disable nesting
enum Feed {
enum FetchMovies {
struct Request {
}
struct Response {
let movies: [MovieResponse.Movie]?
}
struct ViewModel {
let movies: [Movie]
struct Movie {
let header: String
let info: String
let imageURL: URL?
}
}
}
}
// swiftlint:enable nesting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment