From 683cb2b388fd42521c378fd765d462bf07856065 Mon Sep 17 00:00:00 2001 From: mike h Date: Mon, 8 Mar 2021 18:19:27 -0500 Subject: [PATCH] public init --- swift/OpenClockStandard/ClockStandard.swift | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/swift/OpenClockStandard/ClockStandard.swift b/swift/OpenClockStandard/ClockStandard.swift index 6d75005..667b892 100644 --- a/swift/OpenClockStandard/ClockStandard.swift +++ b/swift/OpenClockStandard/ClockStandard.swift @@ -20,16 +20,15 @@ public struct ClockWrapper: Codable { public struct ClockAsset: Codable { - internal init(imageData: String = "", filename: String = "", hasTransparency: Bool = true) { + public var imageData: String = "" + public var filename: String = "" + public var hasTransparency: Bool = true //use PNG or JPG decoding + + public init(imageData: String = "", filename: String = "", hasTransparency: Bool = true) { self.imageData = imageData self.filename = filename self.hasTransparency = hasTransparency } - - - public var imageData: String = "" - public var filename: String = "" - public var hasTransparency: Bool = true //use PNG or JPG decoding } public struct ClockStandard: Codable { @@ -38,7 +37,7 @@ public struct ClockStandard: Codable { public var layers: [ClockLayer] - public init(title: String, layers : [ClockLayer]) { + getEmbeddedClockAssets init(title: String, layers : [ClockLayer]) { self.title = title self.layers = layers }