Skip to content

Commit

Permalink
Fix the view index of FloatingPanelView for SwiftUI
Browse files Browse the repository at this point in the history
Resolve #536
  • Loading branch information
scenee committed Jul 30, 2022
1 parent c330b59 commit 8aaf8b7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct FloatingPanelView<Content: View, FloatingPanelContent: View>: UIViewContr
let contentViewController = UIViewController()
contentViewController.view.addSubview(hostingViewController.view)
fpc.set(contentViewController: contentViewController)
fpc.addPanel(toParent: parentViewController, at: 1, animated: false)
fpc.addPanel(toParent: parentViewController, animated: false)

hostingViewController.view.translatesAutoresizingMaskIntoConstraints = false
let bottomConstraint = hostingViewController.view.bottomAnchor.constraint(equalTo: contentViewController.view.bottomAnchor)
Expand Down

0 comments on commit 8aaf8b7

Please sign in to comment.