Skip to content

Commit

Permalink
Fix compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
kirbyt committed Mar 6, 2016
1 parent 441e557 commit 4c6ff5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WPSKit/UIKit/UIView+WPSKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ extension UIView {
- returns A `UIImage` representation of the view.
*/
public func imageSnapshot -> UIImage {
public func imageSnapshot() -> UIImage {
UIGraphicsBeginImageContextWithOptions(self.bounds.size, true, 0.0)
self.layer.renderInContext(UIGraphicsGetCurrentContext())
self.layer.renderInContext(UIGraphicsGetCurrentContext()!)
let image = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()

Expand Down

0 comments on commit 4c6ff5f

Please sign in to comment.