Skip to content

Commit

Permalink
ref HeroTransitions#623 - wrap all swiftUI code in `#if canImport(Swi…
Browse files Browse the repository at this point in the history
…ftUI)` statement
  • Loading branch information
Menno Lovink authored and nick-potts committed Dec 16, 2019
1 parent 287aba1 commit 3d9dbad
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 3d9dbad

Please sign in to comment.