Skip to content
Open
2 changes: 1 addition & 1 deletion Sources/TagKit/Slugs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public extension String {
///
/// The standard configuration allows `a-z0-9`, and will for
/// instance slugify `Hello, world!` into `hello-world`.
public struct SlugConfiguration {
public struct SlugConfiguration : @unchecked Sendable{

/// Create a new slug configurator.
///
Expand Down
5 changes: 4 additions & 1 deletion Sources/TagKit/Views/TagList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import SwiftUI


/// This enum specifies supported tag list container types.
public enum TagListContainer {

Expand Down Expand Up @@ -38,10 +39,11 @@ public struct TagList<TagView: View>: View {
public init(
tags: [String],
@ViewBuilder tagView: @escaping TagViewBuilder

) {
self.tags = tags
self.tagView = tagView
}
}

private let tags: [String]

Expand All @@ -51,6 +53,7 @@ public struct TagList<TagView: View>: View {
/// This type defines the tag view builder for the list.
public typealias TagViewBuilder = (_ tag: String) -> TagView


public var body: some View {
ForEach(Array(tags.enumerated()), id: \.offset) {
tagView($0.element)
Expand Down
3 changes: 3 additions & 0 deletions Sources/TagKit/Views/TagTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ import SwiftUI

This text field will also make it harder to type characters
that are not in the configuration's allowed character set.

You often want to add an ``onSubmit(of:_:)`` on
the use of this View in order to react on new tags.
*/
public struct TagTextField: View {

Expand Down
4 changes: 2 additions & 2 deletions Sources/TagKit/_Deprecated/TagCapsule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import SwiftUI

@available(*, deprecated, message: "Just use a regular Text element and style it as you wish.")
public struct TagCapsule: View {
public struct TagCapsule: View , Sendable{

/// Create a tag capsule.
///
Expand Down Expand Up @@ -66,7 +66,7 @@ private extension View {
}

@available(*, deprecated, message: "Just use a regular Text element and style it as you wish.")
private extension TagCapsuleStyle {
private extension TagCapsuleStyle {

static var spiderman: Self {
.init(
Expand Down
6 changes: 3 additions & 3 deletions Sources/TagKit/_Deprecated/TagCapsuleStyle.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import SwiftUI

@available(*, deprecated, message: "Just use a regular Text element and style it as you wish.")
public struct TagCapsuleStyle {
public struct TagCapsuleStyle :Sendable{

/// Create a new tag capsule style.
///
Expand Down Expand Up @@ -89,7 +89,7 @@ public struct TagCapsuleStyle {
@available(*, deprecated, message: "Just use a regular Text element and style it as you wish.")
public extension TagCapsuleStyle {

struct Border {
struct Border : Sendable {

/// Create a new tag capsule border style.
///
Expand All @@ -111,7 +111,7 @@ public extension TagCapsuleStyle {
public var width: Double
}

struct Shadow {
struct Shadow : Sendable{

/// Create a new tag capsule shadow style.
///
Expand Down