Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
Fixed ghost pinned preview views
Browse files Browse the repository at this point in the history
  • Loading branch information
louisdh committed Feb 23, 2017
1 parent ebd4418 commit 8ab8d06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PanelKit/PanelManager/PanelManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ public extension PanelManager where Self: UIViewController {
// Send panel and preview view to back, so (shadows of) non-pinned panels are on top
self.panelContentWrapperView.insertSubview(panelView, aboveSubview: self.panelContentView)

if let pinnedPreviewView = pinnedPreviewView {
if let pinnedPreviewView = pinnedPreviewView, pinnedPreviewView.superview != nil {
self.panelContentWrapperView.insertSubview(pinnedPreviewView, aboveSubview: self.panelContentView)
}

Expand Down

0 comments on commit 8ab8d06

Please sign in to comment.