Last active
April 18, 2023 23:31
-
-
Save naturalwarren/12a19f7b3ecb0476dae3d12643830ffc to your computer and use it in GitHub Desktop.
Generated SDUIDataRow
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
public struct DataRow: Codable, Equatable { | |
public let title: String | |
public let subtitle: String | |
public let layout: Layout | |
public let titleHyperlink: URL? | |
public let accessoryView: SDUIComponent? | |
public enum Layout: String { | |
case vertical = "VERTICAL" | |
case horizontal = "HORIZONTAL" | |
} | |
enum CodingKeys: String, CodingKey { | |
case title = "title" | |
case subtitle = "subtitle" | |
case layout = "layout" | |
case titleHyperlink = "title_hyperlink" | |
case accessoryView = "accessory_view" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment