Skip to content
This repository has been archived by the owner on Nov 13, 2024. It is now read-only.

Commit

Permalink
make Pill.theme nonisolated
Browse files Browse the repository at this point in the history
  • Loading branch information
scottasoutherland committed Sep 13, 2024
1 parent c81d799 commit 24d7319
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Thumbprint/Components/Pill.swift
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ open class Pill: UIView, UIContentSizeCategoryAdjusting {
public static let allPredefined: [Theme] = [.green, .blue, .red, .indigo, .gray, .yellow, .purple]
}

public static func theme(for string: String?) -> Theme {
nonisolated public static func theme(for string: String?) -> Theme {
guard let string else { return .gray }

switch string {
Expand Down

0 comments on commit 24d7319

Please sign in to comment.