Skip to content

Commit

Permalink
Get root view controller snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGorman committed Jun 26, 2015
1 parent 841cf97 commit d43f56f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Agrume.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "Agrume"
s.version = "1.0.5"
s.version = "1.0.6"
s.summary = "An iOS image viewer written in Swift."

s.description = <<-DESC
Expand Down
2 changes: 1 addition & 1 deletion Agrume/Agrume.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public class Agrume: UIViewController {
private var initialOrientation: UIInterfaceOrientation!

public func showFrom(viewController: UIViewController) {
backgroundSnapshot = viewController.view.snapshot()
backgroundSnapshot = UIApplication.sharedApplication().delegate?.window??.rootViewController?.view.snapshot()

view.userInteractionEnabled = false
initialOrientation = UIApplication.sharedApplication().statusBarOrientation
Expand Down

0 comments on commit d43f56f

Please sign in to comment.