MarqueeLabel icon indicating copy to clipboard operation
MarqueeLabel copied to clipboard

Subclassing and Superclass problem [class NewLabel: MarqueeLabel]

Open paoloandrea opened this issue 3 years ago • 1 comments

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.

paoloandrea avatar Nov 09 '21 23:11 paoloandrea

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.

cbpowell avatar Dec 07 '21 14:12 cbpowell