This file contains hidden or 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
| import SwiftUI | |
| public class StyledHostingController: UIHostingController<AnyView> { | |
| private let removeNavigationController: Bool | |
| /// Remove duplicated navigation controller when using NavigationStack in SwiftUI views | |
| override public var navigationController: UINavigationController? { | |
| if removeNavigationController { | |
| return nil | |
| } else { |
This file contains hidden or 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
| // | |
| // Bundle+Previews.swift | |
| // | |
| // | |
| // Created by Daniel Choroszucha on 08/05/2024. | |
| // | |
| import Foundation | |
| extension Bundle { |
This file contains hidden or 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
| // | |
| // DynamicSheetController.swift | |
| // | |
| // | |
| // Created by Daniel Choroszucha on 09/05/2024. | |
| // | |
| import SwiftUI | |
| import UIKit |