Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion QRCode/CIImageExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ internal extension CIImage {
///
/// - returns: an non-interpolated UIImage
internal func nonInterpolatedImage(withScale scale: Scale = Scale(dx: 1, dy: 1)) -> UIImage? {
guard let cgImage = CIContext(options: nil).createCGImage(self, fromRect: self.extent) else { return nil }
let cgImage = CIContext(options: nil).createCGImage(self, fromRect: self.extent)
let size = CGSize(width: self.extent.size.width * scale.dx, height: self.extent.size.height * scale.dy)

UIGraphicsBeginImageContextWithOptions(size, true, 0)
Expand Down
2 changes: 1 addition & 1 deletion QRCode/QRCode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public struct QRCode {
}

public init?(_ url: NSURL) {
if let data = url.absoluteString?.dataUsingEncoding(NSISOLatin1StringEncoding) {
if let data = url.absoluteString.dataUsingEncoding(NSISOLatin1StringEncoding) {
self.data = data
} else {
return nil
Expand Down