diff --git a/ElegantCalendar.xcassets/uturn.left.imageset/Contents.json b/ElegantCalendar.xcassets/uturn.left.imageset/Contents.json index d565ed9..2d4437e 100644 --- a/ElegantCalendar.xcassets/uturn.left.imageset/Contents.json +++ b/ElegantCalendar.xcassets/uturn.left.imageset/Contents.json @@ -8,5 +8,8 @@ "info" : { "author" : "xcode", "version" : 1 + }, + "properties" : { + "template-rendering-intent" : "template" } } diff --git a/Sources/ElegantCalendar/Helpers/Extensions/Image+Custom.swift b/Sources/ElegantCalendar/Helpers/Extensions/Image+Custom.swift index 90e0142..60b7fd9 100644 --- a/Sources/ElegantCalendar/Helpers/Extensions/Image+Custom.swift +++ b/Sources/ElegantCalendar/Helpers/Extensions/Image+Custom.swift @@ -4,11 +4,11 @@ import SwiftUI extension Image { - static var uTurnLeft: Image { + static var uTurnLeft: Image = { guard let image = UIImage(named: "uturn.left") else { fatalError("Error: `ElegantCalendar.xcassets` doesn't exist. Refer to the `README.md` installation on how to resolve this.") } return Image(uiImage: image) - } + }() }