From 2256cbba52bedd2a2965c3a0e6be9ccaacc2c510 Mon Sep 17 00:00:00 2001 From: Viktor Starovoitov Date: Sat, 10 Aug 2024 14:28:18 +0300 Subject: [PATCH] Fixed Xcode warning Warning: Stored property 'shape' of 'Sendable'-conforming struct 'SkeletonShape' has non-sendable type 'ShapeType' --- Sources/SkeletonUI/Enumerations/ShapeType.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SkeletonUI/Enumerations/ShapeType.swift b/Sources/SkeletonUI/Enumerations/ShapeType.swift index 9c9c567..1d7ffb5 100644 --- a/Sources/SkeletonUI/Enumerations/ShapeType.swift +++ b/Sources/SkeletonUI/Enumerations/ShapeType.swift @@ -1,11 +1,11 @@ import SwiftUI -public enum RoundedType: Equatable { +public enum RoundedType: Equatable, Sendable { case radius(CGFloat, style: RoundedCornerStyle = .continuous) case size(CGSize, style: RoundedCornerStyle = .continuous) } -public enum ShapeType: Equatable { +public enum ShapeType: Equatable, Sendable { case rounded(RoundedType) case rectangle case circle