File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,9 @@ class BaseViewController<ViewModel: MvvmViewModelProtocol>: SAViewController<Vie
5353#endif
5454 titleLabel. adjustsFontForContentSizeCategory = true
5555 titleLabel. textAlignment = . center
56- titleLabel. enableMarquee ( )
56+ if #available( iOS 18 . 0 , * ) {
57+ titleLabel. enableMarquee ( )
58+ }
5759 return titleLabel
5860 } ( )
5961}
@@ -109,7 +111,9 @@ class BaseHostingViewController<View: MvvmSwiftUIViewProtocol>: SAHostingViewCon
109111#endif
110112 titleLabel. adjustsFontForContentSizeCategory = true
111113 titleLabel. textAlignment = . center
112- titleLabel. enableMarquee ( )
114+ if #available( iOS 18 . 0 , * ) {
115+ titleLabel. enableMarquee ( )
116+ }
113117 return titleLabel
114118 } ( )
115119}
Original file line number Diff line number Diff line change 77
88import UIKit
99
10+ @available ( iOS 18 . 0 , * )
1011extension UILabel {
1112 var marqueeEnabled : Bool {
1213 get { value ( forKey: " marqueeEnabled " ) as? Bool ?? false }
You can’t perform that action at this time.
0 commit comments