Giter Club home page Giter Club logo

Comments (4)

kmyhy avatar kmyhy commented on September 26, 2024 1

No, this control didn't support Objective-C project. The swift-oc-bridge file which is auto-generated by Xcode didn't expose any available method.

from popmenu.

CaliCastle avatar CaliCastle commented on September 26, 2024

Hi, as far as I know this is compatible with Objective-C, let me know if it doesn't, thanks!

from popmenu.

dezinezync avatar dezinezync commented on September 26, 2024

The bridge file generated by Xcode has the following:

/// The object responsible for managing a pop menu <code>PopMenuViewController</code>
SWIFT_CLASS("_TtC7PopMenu14PopMenuManager")
@interface PopMenuManager : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
@end

As noted by @kmyhy, the methods are not exposed.

from popmenu.

dezinezync avatar dezinezync commented on September 26, 2024

I was able to do some testing on the matter, and unfortunately, given how things are configured PopMenu won't be Obj-C compatible without some critical refactoring.

PopMenu uses Swift structs in quite a few places which isn't accessible/visible to Obj-C projects. I'm hoping to make some time and go through this more thoroughly to see if something else is feasible.

from popmenu.

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.