Skip to content

Commit

Permalink
Silence warning about IB functions for visionOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Feb 17, 2024
1 parent c3f5b3f commit 877e810
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/MarqueeLabel.swift
Expand Up @@ -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()
Expand All @@ -573,6 +575,7 @@ open class MarqueeLabel: UILabel, CAAnimationDelegate {
super.prepareForInterfaceBuilder()
forwardPropertiesToSublabel()
}
#endif

private func forwardPropertiesToSublabel() {
/*
Expand Down

0 comments on commit 877e810

Please sign in to comment.