+
+ #if os(iOS) || os(watchOS) || os(tvOS)
+ let foregroundCGColor = UIColor(foregroundColor).cgColor
+ let backgroundCGColor = UIColor(backgroundColor).cgColor
+ #else
+ let foregroundCGColor = NSColor(foregroundColor).cgColor
+ let backgroundCGColor = NSColor(backgroundColor).cgColor
+ #endif
+
+ self.image = TileImage.image(design.wrappedValue, pixelSize: pixelSize, foregroundColor: foregroundCGColor, backgroundColor: backgroundCGColor)