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

Subclassing and Superclass problem [class NewLabel: MarqueeLabel] #274

Open
paoloandrea opened this issue Nov 9, 2021 · 1 comment
Open

Comments

@paoloandrea
Copy link

paoloandrea commented Nov 9, 2021

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.

@cbpowell
Copy link
Owner

cbpowell commented Dec 7, 2021

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.

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

2 participants