mirror of
https://github.com/ivanvorobei/SwiftUI.git
synced 2026-03-28 12:12:03 +01:00
Add Jike
This commit is contained in:
19
Examples/Jike/SwiftUI_Jike/Models/ZoneModel.swift
Executable file
19
Examples/Jike/SwiftUI_Jike/Models/ZoneModel.swift
Executable file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
See LICENSE folder for this sample’s 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user