0

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)?

boraseoksoon
  • 2,164
  • 1
  • 20
  • 25
NotABot
  • 516
  • 1
  • 8
  • 27

1 Answers1

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
  • Expected expression in list of expressions – NotABot Oct 21 '16 at 13:12
  • and one more: Missing argument for parameter #1 in call – NotABot Oct 21 '16 at 13:13
  • 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