Skip to content

Commit

Permalink
Make method main actor
Browse files Browse the repository at this point in the history
  • Loading branch information
NickEntin committed Aug 30, 2024
1 parent 0282117 commit e1351b1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Paralayout/GeometryAdditions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit e1351b1

Please sign in to comment.