Skip to content

Instantly share code, notes, and snippets.

@naturalwarren
Last active April 18, 2023 23:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naturalwarren/12a19f7b3ecb0476dae3d12643830ffc to your computer and use it in GitHub Desktop.
Save naturalwarren/12a19f7b3ecb0476dae3d12643830ffc to your computer and use it in GitHub Desktop.
Generated SDUIDataRow
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