@@ -464,6 +464,7 @@ public struct TableCell: Codable, Equatable, Identifiable {
464464 public let type : String = " TableCell "
465465 public var items : [ CardElement ] ? // Optional to support cells with inline text
466466 public var style : ContainerStyle ?
467+ public var horizontalCellContentAlignment : HorizontalAlignment ?
467468 public var verticalContentAlignment : VerticalAlignment ?
468469 public var bleed : Bool ?
469470 public var backgroundImage : BackgroundImage ?
@@ -485,6 +486,7 @@ public struct TableCell: Codable, Equatable, Identifiable {
485486 public init (
486487 items: [ CardElement ] ? = nil ,
487488 style: ContainerStyle ? = nil ,
489+ horizontalCellContentAlignment: HorizontalAlignment ? = nil ,
488490 verticalContentAlignment: VerticalAlignment ? = nil ,
489491 bleed: Bool ? = nil ,
490492 backgroundImage: BackgroundImage ? = nil ,
@@ -494,6 +496,7 @@ public struct TableCell: Codable, Equatable, Identifiable {
494496 ) {
495497 self . items = items
496498 self . style = style
499+ self . horizontalCellContentAlignment = horizontalCellContentAlignment
497500 self . verticalContentAlignment = verticalContentAlignment
498501 self . bleed = bleed
499502 self . backgroundImage = backgroundImage
@@ -615,13 +618,14 @@ public struct Image: Codable, Equatable, Identifiable {
615618 public var targetWidth : String ?
616619 public var themedUrls : [ String : String ] ?
617620 public var backgroundColor : String ?
621+ public var forceLoad : Bool ?
618622 public var fallback : CardElement ?
619623
620624 enum CodingKeys : String , CodingKey {
621625 case type, id, url, altText, size, style, width, height
622626 case horizontalAlignment, selectAction, spacing, separator
623627 case isVisible, requires, targetWidth, themedUrls
624- case backgroundColor, fallback
628+ case backgroundColor, forceLoad , fallback
625629 }
626630
627631 // Stable identifier using id property or url as fallback
@@ -649,6 +653,7 @@ public struct Image: Codable, Equatable, Identifiable {
649653 targetWidth: String ? = nil ,
650654 themedUrls: [ String : String ] ? = nil ,
651655 backgroundColor: String ? = nil ,
656+ forceLoad: Bool ? = nil ,
652657 fallback: CardElement ? = nil
653658 ) {
654659 self . id = id
@@ -667,6 +672,7 @@ public struct Image: Codable, Equatable, Identifiable {
667672 self . targetWidth = targetWidth
668673 self . themedUrls = themedUrls
669674 self . backgroundColor = backgroundColor
675+ self . forceLoad = forceLoad
670676 self . fallback = fallback
671677 }
672678
@@ -694,6 +700,7 @@ public struct Image: Codable, Equatable, Identifiable {
694700 self . themedUrls = nil
695701 }
696702 self . backgroundColor = try container. decodeIfPresent ( String . self, forKey: . backgroundColor)
703+ self . forceLoad = try container. decodeIfPresent ( Bool . self, forKey: . forceLoad)
697704 self . fallback = try container. decodeIfPresent ( CardElement . self, forKey: . fallback)
698705 }
699706}
0 commit comments