takuoka / TKSubmitTransition

Animated UIButton of Loading Animation and Transition Animation. Inspired by https://dribbble.com/shots/1945593-Login-Home-Screen
MIT License
2.28k stars 229 forks source link

Build errors in Swift file #41

Closed Humanplus91 closed 6 years ago

Humanplus91 commented 7 years ago

When building it's giving the following error,

Installed through CocoaPods link v2.0, Xcode 9 - Swift 3 - iOS11

"TransitionSubmitButton.Swift" Property cannot be marked @IBInspectable because its type cannot be represented in Objective-C

Any idea's?

colealanroberts-zz commented 6 years ago

Seeing the same issue.

colealanroberts-zz commented 6 years ago

Hope this helps anyone else who's stuck! I found a temporary fix in this commit: https://github.com/entotsu/TKSubmitTransition/commit/1230515641cded28e9af3768ab75fc064998e62f

You'll have to Unlock and edit TransitionSubmitButton.swift but it should be fine until a more permanent fix is released.

RishabhTayal commented 6 years ago

Is this still an issue? I don't see any compile error in swift 3.

RishabhTayal commented 6 years ago

@Humanplus91 You can use the swift4 branch like this:

  pod 'TKSubmitTransition', :git => 'https://github.com/entotsu/TKSubmitTransition.git', :branch => 'swift4'

Closing this now.