From c602e4ec510f95b6d4d1dd2b44b0f028c9528148 Mon Sep 17 00:00:00 2001 From: Honghao Zhang Date: Sun, 25 Aug 2024 23:08:59 -0700 Subject: [PATCH] [concurrency] make some types conform to Sendable --- Sources/ChouTiUI/Universal/Layout/Edge.swift | 2 +- .../Universal/Layout/LayoutAlignment/LayoutAlignment.swift | 2 +- .../Layout/LayoutAlignment/LayoutHorizontalAlignment.swift | 2 +- .../Layout/LayoutAlignment/LayoutVerticalAlignment.swift | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Sources/ChouTiUI/Universal/Layout/Edge.swift b/Sources/ChouTiUI/Universal/Layout/Edge.swift index f0010ff..c2353d9 100644 --- a/Sources/ChouTiUI/Universal/Layout/Edge.swift +++ b/Sources/ChouTiUI/Universal/Layout/Edge.swift @@ -12,7 +12,7 @@ import AppKit #endif /// A type indicates one edge of a rectangle. -public enum Edge { +public enum Edge: Sendable { case top case left diff --git a/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutAlignment.swift b/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutAlignment.swift index f0fc592..da89ffc 100644 --- a/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutAlignment.swift +++ b/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutAlignment.swift @@ -8,7 +8,7 @@ import Foundation /// The alignment of a subcomponent relative to its parent. -public enum LayoutAlignment: Hashable { +public enum LayoutAlignment: Hashable, Sendable { case center case left diff --git a/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutHorizontalAlignment.swift b/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutHorizontalAlignment.swift index 1f5ccff..cd7bf23 100644 --- a/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutHorizontalAlignment.swift +++ b/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutHorizontalAlignment.swift @@ -8,7 +8,7 @@ import Foundation /// The horizontal alignment of a subcomponent relative to its parent. -public enum LayoutHorizontalAlignment: Hashable { +public enum LayoutHorizontalAlignment: Hashable, Sendable { case center case left case right diff --git a/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutVerticalAlignment.swift b/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutVerticalAlignment.swift index fd0dc94..4282e70 100644 --- a/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutVerticalAlignment.swift +++ b/Sources/ChouTiUI/Universal/Layout/LayoutAlignment/LayoutVerticalAlignment.swift @@ -8,7 +8,7 @@ import Foundation /// The vertical alignment of a subcomponent relative to its parent. -public enum LayoutVerticalAlignment: Hashable { +public enum LayoutVerticalAlignment: Hashable, Sendable { case center case top case bottom