Skip to content

Commit 12b9718

Browse files
authored
Merge pull request #16 from ServerDriven/develop
Added asset name
2 parents 5fdd954 + 652f36e commit 12b9718

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/ScreenData/Views/SomeImage.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ public struct SomeImage: Codable, Hashable {
22
public var id: String?
33

44
public var url: String
5+
public var assetName: String?
56
public var aspectScale: ImageAspectScale
67

78
public var style: SomeStyle?
@@ -15,12 +16,14 @@ public struct SomeImage: Codable, Hashable {
1516
public init(
1617
id: String? = nil,
1718
url: String,
19+
assetName: String? = nil,
1820
aspectScale: ImageAspectScale,
1921
style: SomeStyle? = nil,
2022
destination: Destination? = nil
2123
) {
2224
self.id = id
2325
self.url = url
26+
self.assetName = assetName
2427
self.aspectScale = aspectScale
2528
self.style = style
2629
self.destination = destination

0 commit comments

Comments
 (0)