From 24d731996d76e4d3e550c85282a12765593e42b7 Mon Sep 17 00:00:00 2001 From: Scott Southerland Date: Fri, 13 Sep 2024 11:50:51 -0700 Subject: [PATCH] make Pill.theme nonisolated --- Sources/Thumbprint/Components/Pill.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Thumbprint/Components/Pill.swift b/Sources/Thumbprint/Components/Pill.swift index 557c5f5..b4d4a8e 100644 --- a/Sources/Thumbprint/Components/Pill.swift +++ b/Sources/Thumbprint/Components/Pill.swift @@ -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 {