Created
January 11, 2022 20:49
-
-
Save pietrobasso/1c33da65c7784db7f72ec9afc5a98815 to your computer and use it in GitHub Desktop.
Widget models
This file contains 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 HeaderWidget: Decodable { | |
let title: String | |
let subtitle: String | |
} | |
struct CardWidget: Decodable { | |
let title: String | |
let image: URL | |
let operation: URL | |
} | |
struct ButtonWidget: Decodable { | |
let title: String | |
let operation: URL | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment