Skip to content

Commit

Permalink
Merge pull request #1 from 7owen/master
Browse files Browse the repository at this point in the history
Xcode 9 support / iOS 8 improved support
  • Loading branch information
ekscrypto authored Jun 28, 2018
2 parents 9abd4f8 + 9818910 commit 1b14b06
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions QRCode.podspec
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Pod::Spec.new do |s|
s.name = "QRCode"
s.version = "2.0"
s.version = "2.0.1"
s.summary = "A QRCode generator written in Swift."
s.description = "Generate QRCodes and customize their appearance."
s.homepage = "https://github.com/aschuch/QRCode"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Alexander Schuch" => "[email protected]" }
s.social_media_url = "http://twitter.com/schuchalexander"
s.platform = :ios, "8.0"
s.source = { :git => "https://github.com/aschuch/QRCode.git", :tag => s.version }
s.source = { :git => "https://github.com/lgw51/QRCode.git", :tag => s.version }
s.requires_arc = true
s.source_files = "QRCode/QRCode.swift", "QRCode/UIImageViewExtension.swift", "QRCode/CIColorExtension.swift", "QRCode/CIImageExtension.swift"
end
2 changes: 1 addition & 1 deletion QRCode/CIImageExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,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, from: self.extent) else { return nil }
guard let cgImage = CIContext().createCGImage(self, from: self.extent) else { return nil }
let size = CGSize(width: self.extent.size.width * scale.dx, height: self.extent.size.height * scale.dy)

UIGraphicsBeginImageContextWithOptions(size, true, 0)
Expand Down

0 comments on commit 1b14b06

Please sign in to comment.