Skip to content

Commit d7df5b2

Browse files
author
Joe Newton
committed
Updated visibility of CBOREncoded field and initializer to public
1 parent 2eded02 commit d7df5b2

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CBORCoding.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "CBORCoding"
4-
s.version = "1.0.3"
4+
s.version = "1.0.4"
55
s.summary = "A CBOR Encoder and Decoder"
66
s.description = <<-DESC
77
A lightweight framework containing a coder pair for encoding and decoding `Codable` conforming types to and from CBOR document format for iOS, macOS, tvOS, and watchOS.

CBORCoding/CBOR.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,13 @@ public struct CBOR {
200200

201201
// MARK: - Fields
202202

203-
let encodedData: Data
203+
public let encodedData: Data
204+
205+
// MARK: - Initialization
206+
207+
public init(encodedData: Data) {
208+
self.encodedData = encodedData
209+
}
204210
}
205211
}
206212

0 commit comments

Comments
 (0)