Skip to content
Snippets Groups Projects
Commit c17818aa authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Make FileSend.preview optional

parent 3a280205
Branches
Tags
2 merge requests!124File transfers example,!102Release 1.0.0
...@@ -4,7 +4,7 @@ public struct FileSend: Equatable { ...@@ -4,7 +4,7 @@ public struct FileSend: Equatable {
public init( public init(
name: String, name: String,
type: String, type: String,
preview: Data, preview: Data?,
contents: Data contents: Data
) { ) {
self.name = name self.name = name
...@@ -15,7 +15,7 @@ public struct FileSend: Equatable { ...@@ -15,7 +15,7 @@ public struct FileSend: Equatable {
public var name: String public var name: String
public var type: String public var type: String
public var preview: Data public var preview: Data?
public var contents: Data public var contents: Data
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment