FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(image): tintColor on iOS was not applied correctly · NativeScript/NativeScript@1f0e8bf · GitHub

Commit 1f0e8bf

Browse files
committed
fix(image): tintColor on iOS was not applied correctly
only reset image to non-template when tintColor is changed to a non-color (removed)
1 parent 02dba02 commit 1f0e8bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tns-core-modules/ui/image/image.ios.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export class Image extends ImageBase {
2828
if (value && this._ios.image && !this._templateImageWasCreated) {
2929
this._ios.image = this._ios.image.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate);
3030
this._templateImageWasCreated = true;
31-
} else if (this._ios.image && this._templateImageWasCreated) {
31+
} else if (!value && this._ios.image && this._templateImageWasCreated) {
3232
this._templateImageWasCreated = false;
3333
this._ios.image = this._ios.image.imageWithRenderingMode(UIImageRenderingMode.Automatic);
3434
}

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL