Skip to content

Commit

Permalink
Merge pull request #22 from dmsl1805/master
Browse files Browse the repository at this point in the history
Possibility to render opaque layer without black background.
  • Loading branch information
KyoheiG3 authored Aug 10, 2017
2 parents dfc956b + 6312860 commit 88aab91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DynamicBlurView/DynamicBlurView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ open class DynamicBlurView: UIView {
private func capturedImage() -> UIImage? {
let bounds = blurLayer.convert(blurLayer.bounds, to: superview?.layer)

UIGraphicsBeginImageContextWithOptions(bounds.size, true, quality.imageScale)
UIGraphicsBeginImageContextWithOptions(bounds.size, false, quality.imageScale)
guard let context = UIGraphicsGetCurrentContext() else {
return nil
}
Expand Down

0 comments on commit 88aab91

Please sign in to comment.