Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeCla committed Dec 21, 2023
1 parent da076a9 commit a68efef
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions ios/Nativebrik/Nativebrik/generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,7 @@ indirect enum UIBlock: Decodable {
case EUICollectionBlock(UICollectionBlock)
case EUICarouselBlock(UICarouselBlock)
case EUITextInputBlock(UITextInputBlock)
case EUISelectInputBlock(UISelectInputBlock)
case unknown

enum CodingKeys: String, CodingKey {
Expand All @@ -323,6 +324,7 @@ indirect enum UIBlock: Decodable {
case __UICollectionBlock = "UICollectionBlock"
case __UICarouselBlock = "UICarouselBlock"
case __UITextInputBlock = "UITextInputBlock"
case __UISelectInputBlock = "UISelectInputBlock"
case unknown
}
init(from decoder: Decoder) throws {
Expand Down Expand Up @@ -354,6 +356,9 @@ indirect enum UIBlock: Decodable {
case .__UITextInputBlock:
let data = try associateContainer.decode(UITextInputBlock.self)
self = .EUITextInputBlock(data)
case .__UISelectInputBlock:
let data = try associateContainer.decode(UISelectInputBlock.self)
self = .EUISelectInputBlock(data)
default:
self = .unknown
}
Expand Down Expand Up @@ -446,6 +451,24 @@ struct UIRootBlockData: Decodable {
var pages: [UIPageBlock]?
var currentPageId: ID?
}
struct UISelectInputBlock: Decodable {
var id: ID?
var data: UISelectInputBlockData?
}
struct UISelectInputBlockData: Decodable {
var options: [UISelectInputOption]?
var value: String?
var size: Int?
var color: Color?
var design: FontDesign?
var weight: FontWeight?
var textAlign: TextAlign?
var frame: FrameData?
}
struct UISelectInputOption: Decodable {
var value: String?
var label: String?
}
struct UITextBlock: Decodable {
var id: ID?
var data: UITextBlockData?
Expand Down

0 comments on commit a68efef

Please sign in to comment.