Skip to content

Commit 3f1a972

Browse files
authored
Xcode 13 compatibility fixed
2 parents e9063b2 + a63c21e commit 3f1a972

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Tests runner
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [ void ]
66
pull_request:
7-
branches: [ master ]
7+
branches: [ void ]
88

99
jobs:
1010
build:

Sources/ModalView/ModalView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
// Copyright © 2019 Denis Chaschin. All rights reserved.
77
//
88

9-
#if canImport(SwiftUI) && canImport(Combine)
9+
#if canImport(SwiftUI) && canImport(Combine) && (arch(arm64) || arch(x86_64))
10+
// arm64 and x86_64 used for compatibility with Xcode 13. More context here: https://stackoverflow.com/a/61954608
1011

1112
import SwiftUI
1213

0 commit comments

Comments
 (0)