SwiftKickMobile / SwiftMessages

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

Warning shown (not affecting the alerts) #435

Closed fabdurso closed 3 years ago

fabdurso commented 3 years ago

Version installed: 8.0.3 with SPM. Xcode version: 12.0.

Unknown class _TtC27SwiftMessages_SwiftMessages18CornerRoundingView in Interface Builder file

I thought that it could be related to

(myView as? CornerRoundingView)?.cornerRadius = 5

but it appears even after changing it to

myView.layer.cornerRadius = 5

Thanks for the amazing job!

wtmoose commented 3 years ago

Can you try cleaning your derived data and restarting Xcode?

If the problem persists, how are you installing SwiftMessages, e.g. CocoaPods?

tbaranes commented 3 years ago

I have the same warning when installing SwitMessages using SPM on Xcode 12, even after cleaning derived data...

fabdurso commented 3 years ago

hey @wtmoose! Installed with SPM, and already cleaned derived data a couple of times. Still there.

Dario-GoldenSpear commented 3 years ago

Hi, I was having the same issue. I got rid of the warning by changing the module name for the CorneredRoundingView in IB to SwiftMessages instead of inheriting the module from the target, as shown here: CornerRoundingView-module-in-IB

Makes sense as that class is not part of the app's target module but part of the SwiftMessages library. Although it was not affecting the expected behavior in runtime 🤔

wtmoose commented 3 years ago

This should be resolved in 8.0.4