diff --git a/CBORCoding.podspec b/CBORCoding.podspec index ecfe19f..c53b673 100644 --- a/CBORCoding.podspec +++ b/CBORCoding.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "CBORCoding" - s.version = "1.0.3" + s.version = "1.0.4" s.summary = "A CBOR Encoder and Decoder" s.description = <<-DESC 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. diff --git a/CBORCoding/CBOR.swift b/CBORCoding/CBOR.swift index b99fffd..234cba4 100644 --- a/CBORCoding/CBOR.swift +++ b/CBORCoding/CBOR.swift @@ -200,7 +200,13 @@ public struct CBOR { // MARK: - Fields - let encodedData: Data + public let encodedData: Data + + // MARK: - Initialization + + public init(encodedData: Data) { + self.encodedData = encodedData + } } }