Skip to content

Commit

Permalink
Merge pull request #26 from bilaalrashid/bilaal/optional-caption-medi…
Browse files Browse the repository at this point in the history
…a-metadata

Make caption optional for FDMediaMetadata
  • Loading branch information
bilaalrashid authored Jul 14, 2024
2 parents bbd4309 + 9b5fae5 commit 6ab082c
Show file tree
Hide file tree
Showing 4 changed files with 395 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Sources/BbcNews/Models/Story/Media/FDMediaMetaData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public struct FDMediaMetadata: Codable, Equatable, Hashable {
public var summary: String?

/// The caption to display with the media item.
public var caption: String
public var caption: String?

/// The caption with styling items.
public var captionWithStyle: FDAttributedText?
Expand Down Expand Up @@ -47,7 +47,7 @@ public struct FDMediaMetadata: Codable, Equatable, Hashable {
public init(
title: String,
summary: String? = nil,
caption: String,
caption: String? = nil,
captionWithStyle: FDAttributedText? = nil,
timestamp: Date,
guidanceMessage: String? = nil,
Expand Down
Loading

0 comments on commit 6ab082c

Please sign in to comment.