Skip to content

Commit

Permalink
ref #623 - wrap all swiftUI code in #if canImport(SwiftUI) statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Menno Lovink authored and JoeMatt committed Dec 12, 2019
1 parent c338b73 commit 33cc4f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Examples/SwiftUIMatchExample.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import UIKit

#if canImport(SwiftUI)

import UIKit
import SwiftUI
#endif

@available(iOS 13.0, *)
class SwiftUIMatchExampleViewController: UIHostingController<ImagesTableView> {
Expand Down Expand Up @@ -90,3 +89,4 @@ struct ImageViewWrapper_Previews: PreviewProvider {
}

#endif
#endif

0 comments on commit 33cc4f9

Please sign in to comment.