Skip to content

Commit

Permalink
Move web view representable into web view
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Mar 31, 2022
1 parent 54c248d commit dff2a24
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
6 changes: 6 additions & 0 deletions Sources/WebViewKit/WebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
// Copyright © 2022 Daniel Saidi. All rights reserved.
//

#if os(iOS)
typealias WebViewRepresentable = UIViewRepresentable
#elseif os(macOS)
typealias WebViewRepresentable = NSViewRepresentable
#endif

#if os(iOS) || os(macOS)
import SwiftUI
import WebKit
Expand Down
25 changes: 0 additions & 25 deletions Sources/WebViewKit/WebViewRepresentable.swift

This file was deleted.

0 comments on commit dff2a24

Please sign in to comment.