Skip to content

Commit

Permalink
public init
Browse files Browse the repository at this point in the history
  • Loading branch information
orff committed Mar 8, 2021
1 parent ab61a52 commit 683cb2b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions swift/OpenClockStandard/ClockStandard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}
Expand Down

0 comments on commit 683cb2b

Please sign in to comment.