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

Commit

Permalink
fix concurrency warning in Pill.Config
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhieddine-El-Kaissi committed Oct 18, 2024
1 parent 4d4d24c commit 2ff812d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/Thumbprint/Components/Pill.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ff812d

Please sign in to comment.