Skip to content

Commit

Permalink
Fixed Swift6 warning, update doco
Browse files Browse the repository at this point in the history
  • Loading branch information
dagronf committed Oct 30, 2024
1 parent 75be06e commit 90bf218
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DSF_QRCode.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = 'DSF_QRCode'
s.version = '22.0.0'
s.version = '23.0.0'
s.summary = 'A simple drop-in macOS/iOS/tvOS/watchOS QR Code generator view for Swift, Objective-C and SwiftUI.'
s.homepage = 'https://github.com/dagronf/QRCode'
s.license = { :type => 'MIT', :file => 'LICENSE' }
Expand Down
1 change: 1 addition & 0 deletions Sources/QRCode/QRCode+Detection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public extension QRCode {
switch self {
case .low: return CIDetectorAccuracyLow
case .high: return CIDetectorAccuracyHigh
@unknown default: fatalError()
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions Sources/QRCode/QRCode+Document+Export.swift
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,8 @@ public extension QRCode.Document {
return try self.svgData(dimension: dimension)
case let .tiff(dpi):
return try self.tiffData(dimension: dimension, dpi: dpi)
@unknown default:
throw QRCodeError.unsupportedExportType
}
}
}
Expand Down
1 change: 1 addition & 0 deletions Sources/QRCode/QRCode+Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ public enum QRCodeError: Error {
case cannotGenerateJSON
case cannotGenerateImageBase64
case invalidHexColorString
case unsupportedExportType
}

0 comments on commit 90bf218

Please sign in to comment.