From e1351b10a4dcc93d59b4a3b58c34b4ec6a5baea9 Mon Sep 17 00:00:00 2001 From: Nick Entin Date: Fri, 30 Aug 2024 15:46:03 -0700 Subject: [PATCH] Make method main actor --- Paralayout/GeometryAdditions.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Paralayout/GeometryAdditions.swift b/Paralayout/GeometryAdditions.swift index 28084fa..cd9d4d0 100644 --- a/Paralayout/GeometryAdditions.swift +++ b/Paralayout/GeometryAdditions.swift @@ -155,6 +155,7 @@ extension CGRect { /// - parameter amount: The size of the slice (absolute). /// - returns: A tuple (slice: A rect with a width/height of the `amount`, remainder: A rect with a width/height of /// the receiver reduced by `amount`). + @MainActor public func slice( from edge: DirectionalEdge, amount: CGFloat,