We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfba89d commit 9faeb4aCopy full SHA for 9faeb4a
Sources/ScriptToolkit/NSImageExtension.swift
@@ -62,7 +62,7 @@ public extension NSImage {
62
/// Saves the PNG representation of the current image to the HD.
63
///
64
/// - parameter url: The location url to which to write the png file.
65
- func savePNGRepresentationToURL(url: URL, onlyChange: Bool) throws {
+ func savePNGRepresentationToURL(url: URL, onlyChange: Bool = true) throws {
66
if let png = self.PNGRepresentation {
67
if let originalData = try? Data(contentsOf: url) {
68
if onlyChange && (png == originalData) {
0 commit comments