Skip to content

Commit

Permalink
Xcode 13 compatibility fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
diniska committed Oct 9, 2021
2 parents e9063b2 + a63c21e commit 3f1a972
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Tests runner

on:
push:
branches: [ master ]
branches: [ void ]
pull_request:
branches: [ master ]
branches: [ void ]

jobs:
build:
Expand Down
3 changes: 2 additions & 1 deletion Sources/ModalView/ModalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
// Copyright © 2019 Denis Chaschin. All rights reserved.
//

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

import SwiftUI

Expand Down

0 comments on commit 3f1a972

Please sign in to comment.