Giter Site home page Giter Site logo

Comments (9)

skywinder avatar skywinder commented on July 18, 2024

Hi.
Shame of me, I don't test Swift compatibility yet. I'll try to research it soon.

Anyway, it will be useful, if you provide more information about your issue:
Some logged errors? Version of Xcode (- GM already?)

p.s.
Github don't have special place to questions, so it's right place to put any questions.

from actionsheetpicker-3.0.

schmatz avatar schmatz commented on July 18, 2024

I am seeing the same bug. I'm able to compile if I insert "#import <UIKit/UIKit.h>" into the files that throw this error. However, when I do something like

let languages = NSArray(array: ["English","German","Swahili"])
ActionSheetStringPicker.showPickerWithTitle("Select language", rows: languages, initialSelection: 0, doneBlock: nil, cancelBlock: nil, origin: self.view)
println("Should have shown picker!")

The code runs without an error but doesn't show the view. I have checked that the self.view has bounds equal to the size of the screen. I'm still debugging, but thought I should share this.

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

@schmatz Thanks for info. Get in touch with updates of your research!

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

Hey, guys. I implement test project on Swift. You can check it out in branch xcode6-swift-support.

@schmatz Indeed, on iPhones swift code works well. But on iPads picker doesn't shows (only in swift project).

@amayasov according your topic question - I think the problem is lack of import UIKit string in the header. Did you found solution for this issue?

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

@amayasov I fix import problem. Now you can use this project in swift

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

Now Swift example merged to master. And all fixes available in latest pods version.
Fell free to reopen issue, if you still need help with swift integration.

from actionsheetpicker-3.0.

amayasov avatar amayasov commented on July 18, 2024

@skywinder, Thanks. We've downgraded to objective-c, so it is not a problem for us any more :) But thank you anyway for your support.

from actionsheetpicker-3.0.

artworkad avatar artworkad commented on July 18, 2024

Can you make one single .h file which imports all relevant files? In swift you have to use a bridging header to import .h files and I would have to import each single file of your library. @skywinder

from actionsheetpicker-3.0.

skywinder avatar skywinder commented on July 18, 2024

I update header ActionSheetPicker.h you can use it.

from actionsheetpicker-3.0.

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.