Skip to content

Commit 04b363d

Browse files
chore: fixed isolating the new UILabel extension to be available only for iOS
1 parent 6d8fc8a commit 04b363d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sources/PersianJustify/Extensions/String.toPJString(in).swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
#if os(iOS)
12
import UIKit
3+
#endif
4+
import Foundation
25

36
extension String {
47

@@ -15,6 +18,7 @@ extension String {
1518
}
1619
}
1720

21+
#if os(iOS)
1822
extension UILabel {
1923

2024
@available(iOS 26.0, *)
@@ -26,3 +30,4 @@ extension UILabel {
2630
}
2731
}
2832
}
33+
#endif

0 commit comments

Comments
 (0)