diff --git a/Examples/Maps-SwiftUI/Maps/FloatingPanel/FloatingPanelView.swift b/Examples/Maps-SwiftUI/Maps/FloatingPanel/FloatingPanelView.swift index 81c24ead..e0376323 100644 --- a/Examples/Maps-SwiftUI/Maps/FloatingPanel/FloatingPanelView.swift +++ b/Examples/Maps-SwiftUI/Maps/FloatingPanel/FloatingPanelView.swift @@ -99,7 +99,7 @@ struct FloatingPanelView: 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)