I am trying to use TZStackView due to limitations of UIStackView but since it's written in swift, I can't add it to my project which is Objective-c project.
I've added swift class to objective-c projects before but this doesn't seem to work.
I've copied TZStackView files to my project directory and got like hundreds of error messages.
How do I use it ( I don't wanna use pods)?
Asked
Active
Viewed 76 times
0

boraseoksoon
- 2,164
- 1
- 20
- 25

NotABot
- 516
- 1
- 8
- 27
-
Please provide the xcode version your using?? – Jeyamahesan Oct 20 '16 at 13:29
-
@Jeyamahesan i am using xcode 7.1.1 – NotABot Oct 20 '16 at 13:40
-
check this solution. follow the steps, sure it will help http://stackoverflow.com/a/27251979/6176024 – Jeyamahesan Oct 20 '16 at 14:08
-
xcode 8 is more simpler than the above solution. if your going to use xcode 8 then you need to convert the syntax to swift 3.Thats all.no errors!!! no warnings!!! – Jeyamahesan Oct 20 '16 at 14:11
-
@Jeyamahesan well it's really not about adding a header but I can't even compile code after adding it to my project. I got 106 errors. – NotABot Oct 20 '16 at 14:14
1 Answers
1
Use the TZStackView v1.2.0, TZStackView v1.3.0 supports swift 3 it will works only in xcode8. for xcode7 use TZStackView v1.2.0.

Jeyamahesan
- 1,101
- 7
- 15
-
This did help. But I am still getting 3 errors after importing TZStackView files to the project. On the line : UIView.setAnimationDidStopSelector(#selector(TZStackView.hiddenAnimationStopped)) – NotABot Oct 21 '16 at 09:03
-
-
-
There is nothing wrong with the code. may be the errors are due to the compatibility with swift. as you mentioned that your using Xcode 7.1.1 which is older for swift, because there are many updates have been made in swift. so my kind advice is to update the Xcode to 7.3.1. Currently i'm using the Xcode 7.3.1 with TZStackView there is no errors and warnings and works like a charm. If you're satisfied with my answer please upvote and accept my answer.Thank you. – Jeyamahesan Oct 21 '16 at 13:38