Skip to content

Commit f462850

Browse files
authored
Merge pull request #277 from heoblitz/feature/support_swift6
Support Swift 6
2 parents d5bec83 + e1bc1c3 commit f462850

File tree

12 files changed

+32
-24
lines changed

12 files changed

+32
-24
lines changed

Example/SPM/FlexLayoutSample-SPM.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@
608608
"$(inherited)",
609609
);
610610
INFOPLIST_FILE = "../FlexLayoutSample/Supporting Files/Info.plist";
611-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
611+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
612612
LD_RUNPATH_SEARCH_PATHS = (
613613
"$(inherited)",
614614
"@executable_path/Frameworks",
@@ -631,7 +631,7 @@
631631
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
632632
CODE_SIGN_STYLE = Automatic;
633633
INFOPLIST_FILE = "../FlexLayoutSample/Supporting Files/Info.plist";
634-
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
634+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
635635
LD_RUNPATH_SEARCH_PATHS = (
636636
"$(inherited)",
637637
"@executable_path/Frameworks",

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// swift-tools-version:5.3
1+
// swift-tools-version:5.5
22
// The swift-tools-version declares the minimum version of Swift required to build this package.
33

44
import PackageDescription
55

66
let package = Package(
77
name: "FlexLayout",
88
platforms: [
9-
.iOS(.v12),
9+
.iOS(.v13),
1010
],
1111
products: [
1212
.library(name: "FlexLayout", targets: ["FlexLayout"]),

Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
PODS:
2-
- FlexLayout (2.2.0):
2+
- FlexLayout (2.2.1):
33
- Yoga (= 3.2.1)
44
- PinLayout (1.10.5)
55
- SwiftLint (0.55.1)
@@ -22,7 +22,7 @@ EXTERNAL SOURCES:
2222
:path: "./"
2323

2424
SPEC CHECKSUMS:
25-
FlexLayout: a8947ca2446760b5203ba5a3d862023c92a82fce
25+
FlexLayout: fe365fe6e4a7bf1a53b7421a75acf4c7991e3575
2626
PinLayout: f6c2b63a5a5b24864064e1d15c67de41b4e74748
2727
SwiftLint: 3fe909719babe5537c552ee8181c0031392be933
2828
Yoga: 636ce73bd247407928a7df089f3bc3675916b3ff

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Flexbox is an incredible improvement over UIStackView. It is simpler to use, muc
2323
2424

2525
### Requirements
26-
* iOS 12.0+
27-
* Xcode 12.0+
28-
* Swift Swift 4.0
26+
* iOS 13.0+
27+
* Xcode 13.0+
28+
* Swift 5.5
2929

3030
### Content
3131

Sources/Swift/FlexLayout.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import FlexLayoutYogaKit
2626
label.flex.margin(10)
2727
```
2828
*/
29+
@MainActor
2930
public final class Flex {
3031

3132
//

Sources/Swift/Impl/UIView+FlexLayout.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
import UIKit
1616

17+
@MainActor
1718
private var flexLayoutAssociatedObjectHandle = 72_399_923
1819

1920
extension UIView {

Tests/FlexLayoutTests/FlexLayoutTests.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
import XCTest
1414
@testable import FlexLayout
1515

16+
@MainActor
1617
final class FlexLayoutTests: XCTestCase {
1718

1819
func testRetainCycle() {

Tests/FlexLayoutTests/InsetTests.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313
import FlexLayout
1414
import XCTest
1515

16-
final class InsetTests: XCTestCase {
16+
@MainActor
17+
final class InsetTests: XCTestCase, Sendable {
1718

1819
var viewController: UIViewController!
1920
var rootFlexContainer: UIView!
2021
var aView: UIView!
2122

22-
override func setUp() {
23-
super.setUp()
23+
override func setUp() async throws {
24+
try await super.setUp()
2425

2526
viewController = UIViewController()
2627

Tests/FlexLayoutTests/JustifyContentTests.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
import FlexLayout
1414
import XCTest
1515

16-
final class JustifyContentTests: XCTestCase {
16+
@MainActor
17+
final class JustifyContentTests: XCTestCase, Sendable {
1718

1819
var viewController: UIViewController!
1920
var rootFlexContainer: UIView!
@@ -22,8 +23,8 @@ final class JustifyContentTests: XCTestCase {
2223
var cView: UIView!
2324
var dView: UIView!
2425

25-
override func setUp() {
26-
super.setUp()
26+
override func setUp() async throws {
27+
try await super.setUp()
2728

2829
viewController = UIViewController()
2930

Tests/FlexLayoutTests/MarginTests.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,15 @@
1313
import FlexLayout
1414
import XCTest
1515

16-
final class MarginTests: XCTestCase {
16+
@MainActor
17+
final class MarginTests: XCTestCase, Sendable {
1718

1819
var viewController: UIViewController!
1920
var rootFlexContainer: UIView!
2021
var aView: UIView!
2122

22-
override func setUp() {
23-
super.setUp()
23+
override func setUp() async throws {
24+
try await super.setUp()
2425

2526
viewController = UIViewController()
2627

0 commit comments

Comments
 (0)