From 877e810534cda9afabb8143ae319b7c3341b121b Mon Sep 17 00:00:00 2001 From: Charles Powell Date: Sat, 17 Feb 2024 13:08:34 -0700 Subject: [PATCH] Silence warning about IB functions for visionOS --- Sources/MarqueeLabel.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Sources/MarqueeLabel.swift b/Sources/MarqueeLabel.swift index 4a553a9..c29065c 100644 --- a/Sources/MarqueeLabel.swift +++ b/Sources/MarqueeLabel.swift @@ -563,6 +563,8 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate { NotificationCenter.default.addObserver(self, selector: #selector(MarqueeLabel.shutdownLabel), name: UIApplication.didEnterBackgroundNotification, object: nil) } + // Interface Builder features deprecated in visionOS + #if !os(visionOS) override open func awakeFromNib() { super.awakeFromNib() forwardPropertiesToSublabel() @@ -573,6 +575,7 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate { super.prepareForInterfaceBuilder() forwardPropertiesToSublabel() } + #endif private func forwardPropertiesToSublabel() { /*