MarqueeLabel
MarqueeLabel copied to clipboard
Subclassing and Superclass problem [class NewLabel: MarqueeLabel]
I use the MarqueeLabel in a bridge project. I have to create a class NewLabel (Subclassing) which is extended by the MarqueeLabel (Superclass), but I get a lot of errors.
Example class:
import UIKit
import MarqueeLabel
@objc
public class NewLabel: MarqueeLabel {
}
Error Cannot find interface declaration for 'MarqueeLabel', superclass of 'NewLabel'
Code printed in a bridge file is:
SWIFT_CLASS("_TtC4IPTV7NewLabel")
@interface NewLabel : MarqueeLabel
- (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER;
@end
How can I make this simple class work?
Thanks for your time.
Hi, sorry for the slow response - have you had any luck? I admit I haven’t had much experience with bridge projects so I’m not familiar with the common issues or workarounds.
That said this doesn’t feel like a MarqueeLabel-specific problem, but I could be wrong.