Skip to content

Commit 877e810

Browse files
committed
Silence warning about IB functions for visionOS
1 parent c3f5b3f commit 877e810

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/MarqueeLabel.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,8 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {
563563
NotificationCenter.default.addObserver(self, selector: #selector(MarqueeLabel.shutdownLabel), name: UIApplication.didEnterBackgroundNotification, object: nil)
564564
}
565565

566+
// Interface Builder features deprecated in visionOS
567+
#if !os(visionOS)
566568
override open func awakeFromNib() {
567569
super.awakeFromNib()
568570
forwardPropertiesToSublabel()
@@ -573,6 +575,7 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {
573575
super.prepareForInterfaceBuilder()
574576
forwardPropertiesToSublabel()
575577
}
578+
#endif
576579

577580
private func forwardPropertiesToSublabel() {
578581
/*

0 commit comments

Comments
 (0)