From 2ff812d00e4193db4426a9be73423e94f4b102a8 Mon Sep 17 00:00:00 2001 From: Muhieddine EL Kaissi Date: Thu, 17 Oct 2024 17:00:43 -0700 Subject: [PATCH] fix concurrency warning in Pill.Config --- Sources/Thumbprint/Components/Pill.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/Thumbprint/Components/Pill.swift b/Sources/Thumbprint/Components/Pill.swift index a361565..c62004e 100644 --- a/Sources/Thumbprint/Components/Pill.swift +++ b/Sources/Thumbprint/Components/Pill.swift @@ -11,10 +11,10 @@ import UIKit open class Pill: UIView, UIContentSizeCategoryAdjusting { // MARK: - Class configuration - public struct Config { - public static var defaultHeight: CGFloat = 24.0 - public static var defaultPadding: CGFloat = 12.0 - public static var defaultTextStyle: Font.TextStyle = .title7 + public struct Config: Sendable { + public static let defaultHeight: CGFloat = 24.0 + public static let defaultPadding: CGFloat = 12.0 + public static let defaultTextStyle: Font.TextStyle = .title7 public private(set) var height: CGFloat public private(set) var padding: CGFloat