FloatingPanel is a UI component for iOS that implements the floating panel interface pattern seen in Apple Maps, Shortcuts, and Stocks.
The tool solves the problem of displaying supplementary content and controls alongside primary app content without obscuring it entirely. It provides a draggable panel that can be positioned at the top, left, bottom, or right of the screen and snapped to multiple magnetic anchor points. The component handles the complex interactions involved—fluid springing animations, scroll view tracking, removal gestures, and layout adjustments across device orientations—while avoiding common pitfalls with Auto Layout and gesture recognition.
FloatingPanel suits iOS developers building apps that need to present contextual information or controls in a way that matches Apple's design patterns. It works with both UIKit and SwiftUI, supports multiple panels simultaneously, and can be presented either as an embedded child view or modally. The tool includes built-in UI elements like surfaces, backdrops, and grabber handles. Developers should note that it requires Swift 5.0 and iOS 12.0 or later, and it is compatible with Objective-C as well.
Maintainers typically respond to new issues and pull requests within a few days.