SwiftKickMobile / SwiftMessages

A very flexible message bar for UIKit and SwiftUI.
MIT License
7.33k stars 747 forks source link

xCode 11 & Swift 5 warnings #323

Closed Idomo closed 4 years ago

Idomo commented 5 years ago

After updating to xCode 11 & Swift 5, I'm getting those warnings: Coercion of implicitly unwrappable value of type 'SideMenuTransition?' to 'Any' does not unwrap optional

I'm really not sure why is that, 'cause the value is from type of SideMenuTransition! and not SideMenuTransition? as the warning says.

Looks like casting all of those targets to Any silenced the warnings, but I guess there is a better solution.

image

wtmoose commented 5 years ago

I’ll take a look at Xcode 11 soonish, so I’ll leave this ticket open as a placeholder.

Idomo commented 5 years ago

@wtmoose Great, you may also look for analyzer warnings/errors (Shift + Cmd + B)

giofid commented 4 years ago

@Idomo, @wtmoose Is this issue related to SwiftMessages? It seems to concern the SideMenu library, instead.

wtmoose commented 4 years ago

@giofid LOL, yeah