Skip to content

Commit

Permalink
Add available statements for all platforms (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjotaum authored Apr 24, 2024
1 parent 886136d commit b0d741a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/Caffeine/Extensions/Label+SFSymbol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import SwiftUI

public extension Label where Title == Text, Icon == Image {
@available(iOS 16, *)
@available(macOS 13, *)
@available(tvOS 16, *)
@available(watchOS 9, *)
init(_ localizedString: LocalizedStringResource, symbol: SFSymbol) {
self.init(localizedString.key, systemImage: symbol.systemImage)
}
Expand Down

0 comments on commit b0d741a

Please sign in to comment.