-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding basic conversion to swiftUI (#28)
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// NetshearsFlowView.swift | ||
// | ||
// | ||
// Created by Sam Rayatnia on 09.02.23. | ||
// | ||
|
||
import SwiftUI | ||
|
||
@available(iOS 13.0, *) | ||
public struct NetshearsFlowView: UIViewControllerRepresentable { | ||
|
||
public func makeUIViewController(context: Context) -> some UIViewController { | ||
let storyboard = UIStoryboard.NetShearsStoryBoard | ||
guard let initialVC = storyboard.instantiateInitialViewController() else { preconditionFailure() } | ||
((initialVC as? UINavigationController)?.topViewController as? RequestsViewController)?.delegate = NetShears.shared.bodyExportDelegate | ||
return initialVC | ||
} | ||
|
||
public func updateUIViewController(_ uiViewController: UIViewControllerType, context: Context) {} | ||
|
||
|
||
} |