Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation option not found #33

Closed
AbdoElabd opened this issue Sep 27, 2018 · 8 comments
Closed

Animation option not found #33

AbdoElabd opened this issue Sep 27, 2018 · 8 comments

Comments

@AbdoElabd
Copy link

when I installed Xcode 10 and swift 4.2 this issue appeared

Pods/ExpandingMenu/ExpandingMenu/Classes/ExpandingMenuButton.swift:78:62: Type 'UIView.AnimationOptions' has no member 'Default'

@raeesmadathil
Copy link

I am also facing same issue when I updated to Xcode10, please give me a solution.
Thanks.

@Bigigrammer
Copy link

The error is Name of UIView.AnimationOptions conflicts with a struct name of AnimationOptions in this library. So you change it name written in top of "ExpandingMenuButton.swift" and also change the variable type.
E.g
AnimationOptionsMenuAnimationOptions
open var enabledExpandingAnimations: AnimationOptions = .Defaults

open var enabledExpandingAnimations: MenuAnimationOptions = .Defaults

@raeesmadathil
Copy link

yes, That is the exact issue, Thanks for solution

@medida
Copy link

medida commented Oct 15, 2018

I'm still having the above issue even though i have renamed the elements

open var enabledExpandingAnimations: CustomAnimationOptions = .Default
Type 'UIView.AnimationOptions' has no member 'Default'

I have also tried the newer version of the code - but i'm still getting this message.

it seems to referencing the UIView.AnimationOptions quite a bit through the file instead of the newly named one....

Any greatfull as i have inherited this project and at a complete loss.

@Bigigrammer
Copy link

Hi medida
And you also rename public struct that is 11th line in ExpandingMenuButton.swift like this.
public struct AnimationOptions : OptionSet {/*SomeCode*/}

public struct CustomAnimationOptions: OptionSet{/*SomeCode*/}

@Bigigrammer
Copy link

Additionally, all variable of AnimationOptions type in this library should be changed to CustomAnimationOptions.

@medida
Copy link

medida commented Oct 15, 2018

Hi - Thanks.

I have restarted everything and this error seems to be sorted - just another one caused by xcode 10!

@monoqlo
Copy link
Owner

monoqlo commented Oct 20, 2018

This issue was resolved at #31
and I released ver 0.4.0 including the fix.
https://github.com/monoqlo/ExpandingMenu/releases/tag/0.4.0

@monoqlo monoqlo closed this as completed Oct 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants