Skip to content

Commit

Permalink
Upgrade to 4.0.7. Fixed watchOS compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanvorobei committed Nov 6, 2023
1 parent 84365da commit 94643f5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ or adding it to the `dependencies` of your `Package.swift`:

```swift
dependencies: [
.package(url: "https://github.com/sparrowcode/SwiftBoost", .upToNextMajor(from: "4.0.0"))
.package(url: "https://github.com/sparrowcode/SwiftBoost", .upToNextMajor(from: "4.0.7"))
]
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public extension Locale {
}

var languageID: String? {
if #available(iOS 16.0, macOS 13.0, *) {
if #available(iOS 16.0, watchOS 9.0, macOS 13.0, *) {
return self.language.languageCode?.identifier
} else {
return self.languageCode
Expand Down
2 changes: 2 additions & 0 deletions Sources/SwiftBoost/UIKit/Extensions/UIColorExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,11 @@ public extension UIColor {
}
#endif

#if !os(watchOS)
var secondary: UIColor {
return .init(light: self.alpha(0.06), dark: self.alpha(0.18))
}
#endif

#if !os(watchOS) && !os(tvOS)
static var footnoteColor: UIColor {
Expand Down
2 changes: 1 addition & 1 deletion SwiftBoost.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

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

0 comments on commit 94643f5

Please sign in to comment.