Files
SwiftUI/Examples/Jike/SwiftUI_Jike/Models/ZoneModel.swift
Ivan Vorobei 27a7f9fae6 Add Jike
2019-06-06 22:36:07 +03:00

20 lines
389 B
Swift
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
See LICENSE folder for this samples licensing information.
Abstract:
The model for an individual landmark.
*/
import SwiftUI
struct ZoneModel: Hashable, Codable, Identifiable {
var id: Int
var name: String
var imageName: String
var category: String
func image(forSize size: Int) -> Image {
ImageStore.shared.image(name: imageName, size: size)
}
}