Conversation
| name: "FlexLayout", | ||
| platforms: [ | ||
| .iOS(.v12), | ||
| .iOS(.v13), |
There was a problem hiding this comment.
The minimum supported version has been raised to enable the use of MainActor.
For CocoaPods, the current minimum supported version is iOS 13.4.
|
|
||
| import UIKit | ||
|
|
||
| @MainActor |
There was a problem hiding this comment.
Since the flex property of UIView is isolated to the MainActor, the corresponding global variable is also annotated with MainActor instead of nonisolated.
|
|
||
| final class InsetTests: XCTestCase { | ||
| @MainActor | ||
| final class InsetTests: XCTestCase, Sendable { |
There was a problem hiding this comment.
Modify to allow testing of MainActor-isolated objects.
| label.flex.margin(10) | ||
| ``` | ||
| */ | ||
| @MainActor |
There was a problem hiding this comment.
Flex creates and manages UIViews, so it should also use MainActor.
lucdion
left a comment
There was a problem hiding this comment.
Excellent. Great improvements
|
It seems I don’t have permission to merge into master, so please merge when you have time. Thank you. |
|
Thanks, its merged and a new release 2.2.2 is published |
What is this PR?
Many major libraries support building in the Swift 6 environment. FlexLayout has also been updated to build with Swift 6.
Related to #276