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

Commit

Permalink
Added PanelManager documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
louisdh committed Feb 21, 2017
1 parent 67a8c9d commit a74c68e
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions PanelKit/PanelManager/PanelManager.swift
Expand Up @@ -11,21 +11,35 @@ import UIKit

public protocol PanelManager: PanelViewControllerDelegate, PanelsFullscreenTransitionDelegate, PanelContentViewControllerDelegate {

/// The panels to be managed.
var panels: [PanelViewController] { get }

/// Allow floating panels
var allowFloatingPanels: Bool { get }

/// Allow panels to pin to either the left or right side,
/// resizing ```panelContentView``` when a panel is pinned.
var allowPanelPinning: Bool { get }


/// The view in which the panels may be dragged around.
var panelContentWrapperView: UIView { get }

/// The content view, which will be moved/resized when panels pin.
var panelContentView: UIView { get }

/// Default implementation is ```LogLevel.none```
/// Default implementation is ```LogLevel.none```.
var panelManagerLogLevel: LogLevel { get }

/// This will be called when a panel is pinned or unpinned.
func didUpdatePinnedPanels()

/// Drag insets for panel.
///
/// E.g. a positive top inset will change the minimum y value
/// a panel can be dragged to inside ```panelContentWrapperView```.
///
/// - Parameter panel: The panel for which to provide insets.
/// - Returns: Edge insets.
func dragInsets(for panel: PanelViewController) -> UIEdgeInsets

}
Expand Down

0 comments on commit a74c68e

Please sign in to comment.