Skip to content

Commit c8a6e34

Browse files
committed
hotfix for scroll button image being rerendered everytime it's shown
1 parent b1eabcd commit c8a6e34

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

ElegantCalendar.xcassets/uturn.left.imageset/Contents.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
"info" : {
99
"author" : "xcode",
1010
"version" : 1
11+
},
12+
"properties" : {
13+
"template-rendering-intent" : "template"
1114
}
1215
}

Sources/ElegantCalendar/Helpers/Extensions/Image+Custom.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import SwiftUI
44

55
extension Image {
66

7-
static var uTurnLeft: Image {
7+
static var uTurnLeft: Image = {
88
guard let image = UIImage(named: "uturn.left") else {
99
fatalError("Error: `ElegantCalendar.xcassets` doesn't exist. Refer to the `README.md` installation on how to resolve this.")
1010
}
1111
return Image(uiImage: image)
12-
}
12+
}()
1313

1414
}

0 commit comments

Comments
 (0)