Comments (9)
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.
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.
@schmatz Thanks for info. Get in touch with updates of your research!
from actionsheetpicker-3.0.
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.
@amayasov I fix import problem. Now you can use this project in swift
from actionsheetpicker-3.0.
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.
@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.
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.
I update header ActionSheetPicker.h
you can use it.
from actionsheetpicker-3.0.
Related Issues (20)
- SWActionSheetVC.dismissTap prevents calendar from working in inline style
- OK Button Locale not change HOT 3
- Current date is not available on compact Date picker style iOS 14.4 & above HOT 1
- Exclude days or dates
- "exported: true has no effect in '_specialize' attribute" Issue at Xcode 12.5 HOT 3
- Not working with Swift Package Manager [bug] HOT 5
- Remove the pieces of the code for less than the Deployment Target HOT 3
- Picker not showing on iPad but only on iPhone HOT 1
- Picker not appearing if try to show back to back
- ActionSheet opens in wrong display when iphone is connected to an external display.
- Mac Catalyst Warnings HOT 1
- SPM Issues HOT 1
- Adjust Picker Width HOT 2
- Unable to build archieve on Xcode 14.3 HOT 11
- date selection error
- selectedDate for .countDownTimer not working as expected
- Need secrets.COCOAPODS_TRUNK_TOKEN HOT 5
- Privacy manifest required by Apple HOT 3
- Error in v2.7.3 compilation issue HOT 2
- Needs update README.md
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actionsheetpicker-3.0.