Git Product home page Git Product logo

Comments (8)

antoniocasero avatar antoniocasero commented on July 18, 2024

Of course, as long your VC conforms the protocol Panelable, you can inject it to the method 'show'.

from panels.

antoniocasero avatar antoniocasero commented on July 18, 2024

but I'm working to make Panelable nicer :)

from panels.

Savyalov avatar Savyalov commented on July 18, 2024

"Trying to instantiate something that does not conform Panelable :("

import UIKit
import AVFoundation
import Panels

class ViewController12: UIViewController, Panelable {
@IBOutlet var headerHeight: NSLayoutConstraint!
@IBOutlet var headerPanel: UIView!
}
My storyboard name is "Main". Help me, I do not understand what the problem is. Thank!

from panels.

antoniocasero avatar antoniocasero commented on July 18, 2024

Hi @Savyalov, sorry for the late response. Are you still having problems? There is an extension included in the framework to instantiate Panels from the storyboard, maybe it helps.

from panels.

Savyalov avatar Savyalov commented on July 18, 2024

Thank! Already figured out.

from panels.

erniela avatar erniela commented on July 18, 2024

Thank! Already figured out.

What was your solution? I have the same problem doing programmatically. Please help.

from panels.

Savyalov avatar Savyalov commented on July 18, 2024

Good morning! I just deleted and installed again Panelable. Nothing else helped.

from panels.

shchoi82-robotcode avatar shchoi82-robotcode commented on July 18, 2024

Hi,
I'm trying to implement without storyboard.
Its my code.. what is the problem?

let panelManager = Panels(target: self)
let panelConfiguration = PanelConfiguration(size: .oneThird)
panelManager.show(panel: self, config: panelConfiguration, view: myView)

myVIew is just existing UIView
self is UIController & Panelable

runtime error
EXC_BAD_ACCESS
Panels.swift: 38 Line
parentViewController?.addContainer(container: panel)

from panels.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.