Skip to content

Commit

Permalink
hotfix for scroll button image being rerendered everytime it's shown
Browse files Browse the repository at this point in the history
  • Loading branch information
ThasianX committed Jul 14, 2020
1 parent b1eabcd commit c8a6e34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ElegantCalendar.xcassets/uturn.left.imageset/Contents.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"info" : {
"author" : "xcode",
"version" : 1
},
"properties" : {
"template-rendering-intent" : "template"
}
}
4 changes: 2 additions & 2 deletions Sources/ElegantCalendar/Helpers/Extensions/Image+Custom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}()

}

0 comments on commit c8a6e34

Please sign in to comment.