FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

Error on Initialize a FloatingPanelController object.

Open lampoCastor opened this issue 5 years ago • 1 comments

Description

I have added this to my project via the swift package manager, but every time i try to initialise the FloatingPanelController() e.g. fpc = FloatingPanelController(), it shows the following error

Fatal error: Use of unimplemented initializer 'init(nibName:bundle:)' for class 'FloatingPanel.FloatingPanelController'

Expected behavior

To initialise new floatingPanelController

Actual behavior

Crash

Steps to reproduce

see below

Code example that reproduces the issue As below

How do you display panel(s)?

implemented as per usage example

override func viewDidLoad() { super.viewDidLoad() // Initialize a FloatingPanelController object. fpc = FloatingPanelController()

    // Assign self as the delegate of the controller.
    fpc.delegate = self // Optional

    // Set a content view controller.
    let contentVC = ContentViewController()
    fpc.set(contentViewController: contentVC)

    // Track a scroll view(or the siblings) in the content view controller.
    fpc.track(scrollView: contentVC.tableView)

    // Add and show the views managed by the `FloatingPanelController` object to self.view.
    fpc.addPanel(toParent: self)
}

How many panels do you displays? 1

Environment

Library version 1.7.4

Installation method Swift Package Manager

iOS version(s) 13.1.2

Xcode version Version 11.0 (11A420a)

lampoCastor avatar Mar 26 '20 11:03 lampoCastor

@lampoCastor Did you ever figure this error out? I'm getting the same error

hardeverick avatar Jul 02 '21 21:07 hardeverick