FeedSection
public struct FeedSection : Equatable, Hashable, Codable
extension FeedSection: Sendable
A categorized feed section containing recommendations and responsive layout configuration.
-
Identifier for this feed section (the key from the API response map, e.g.
"top_stories_section","travel","arts").Declaration
Swift
public var feedId: String -
The display position of this section within the overall feed.
Declaration
Swift
public var receivedFeedRank: Int32 -
The recommendations in this section.
Declaration
Swift
public var recommendations: [RecommendationDataItem] -
Display title for this section.
Declaration
Swift
public var title: String -
Optional subtitle for this section.
Declaration
Swift
public var subtitle: String? -
Responsive layout configuration for rendering this section.
Declaration
Swift
public var layout: Layout -
Whether the user is following this section.
Declaration
Swift
public var isFollowed: Bool -
Whether the user has blocked this section.
Declaration
Swift
public var isBlocked: Bool -
Declaration
Swift
public init( /** * Identifier for this feed section (the key from the API response map, * e.g. `"top_stories_section"`, `"travel"`, `"arts"`). */feedId: String, /** * The display position of this section within the overall feed. */receivedFeedRank: Int32, /** * The recommendations in this section. */recommendations: [RecommendationDataItem], /** * Display title for this section. */title: String, /** * Optional subtitle for this section. */subtitle: String? = nil, /** * Responsive layout configuration for rendering this section. */layout: Layout, /** * Whether the user is following this section. */isFollowed: Bool, /** * Whether the user has blocked this section. */isBlocked: Bool)