aschuch / QRCode

A QRCode generator written in Swift.
MIT License
738 stars 198 forks source link

* add support custom CIContextFactory.use it fix crash in iOS8 #46

Open stat0s2p opened 7 years ago

stat0s2p commented 7 years ago

read http://stackoverflow.com/questions/39570644 answer create CIContext instance in object-c and set it to QRCode.CIContextFactory static field in iOS8. example:

if #available(iOS 9.0, *){
  return
}
QRCode.CIContextFactory = {
  return CIContext.cso_context(options: nil)
}