Skip to content

Commit 94643f5

Browse files
committed
Upgrade to 4.0.7. Fixed watchOS compatibility.
1 parent 84365da commit 94643f5

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ or adding it to the `dependencies` of your `Package.swift`:
4141

4242
```swift
4343
dependencies: [
44-
.package(url: "https://github.com/sparrowcode/SwiftBoost", .upToNextMajor(from: "4.0.0"))
44+
.package(url: "https://github.com/sparrowcode/SwiftBoost", .upToNextMajor(from: "4.0.7"))
4545
]
4646
```
4747

Diff for: Sources/SwiftBoost/Foundation/Extensions/LocaleExtension.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public extension Locale {
1212
}
1313

1414
var languageID: String? {
15-
if #available(iOS 16.0, macOS 13.0, *) {
15+
if #available(iOS 16.0, watchOS 9.0, macOS 13.0, *) {
1616
return self.language.languageCode?.identifier
1717
} else {
1818
return self.languageCode

Diff for: Sources/SwiftBoost/UIKit/Extensions/UIColorExtension.swift

+2
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,11 @@ public extension UIColor {
178178
}
179179
#endif
180180

181+
#if !os(watchOS)
181182
var secondary: UIColor {
182183
return .init(light: self.alpha(0.06), dark: self.alpha(0.18))
183184
}
185+
#endif
184186

185187
#if !os(watchOS) && !os(tvOS)
186188
static var footnoteColor: UIColor {

Diff for: SwiftBoost.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = 'SwiftBoost'
4-
s.version = '4.0.3'
4+
s.version = '4.0.7'
55
s.summary = 'Collection of Swift-extensions to boost development process.'
66
s.homepage = 'https://github.com/sparrowcode/SwiftBoost'
77
s.source = { :git => 'https://github.com/sparrowcode/SwiftBoost.git', :tag => s.version }

0 commit comments

Comments
 (0)