Tile
public struct Tile : Equatable, Hashable, Codable
extension Tile: Sendable
Properties for a single tile within a responsive layout.
-
Display size of the tile (e.g.
"large","medium","small").Declaration
Swift
public var size: String -
Zero-based position index of this tile within the layout.
Declaration
Swift
public var position: Int32 -
Whether this tile position may contain an advertisement.
Declaration
Swift
public var hasAd: Bool -
Whether this tile should display an article excerpt.
Declaration
Swift
public var hasExcerpt: Bool -
Declaration
Swift
public init( /** * Display size of the tile (e.g. `"large"`, `"medium"`, `"small"`). */size: String, /** * Zero-based position index of this tile within the layout. */position: Int32, /** * Whether this tile position may contain an advertisement. */hasAd: Bool, /** * Whether this tile should display an article excerpt. */hasExcerpt: Bool)