Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typed and Any #14

Merged
merged 2 commits into from
Oct 28, 2024
Merged

Typed and Any #14

merged 2 commits into from
Oct 28, 2024

Conversation

muukii
Copy link
Collaborator

@muukii muukii commented Oct 23, 2024

No description provided.

@@ -37,6 +38,8 @@ open class SwiftUIHostingViewController: UIViewController {

open override func viewDidLoad() {

super.viewDidLoad()

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh my god w

@@ -60,3 +63,30 @@ open class SwiftUIHostingViewController: UIViewController {
}

}

open class AnySwiftUIHostingViewController: SwiftUIHostingViewController<AnyView> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ユースケースがあまり思いつけないですが、APIとして良いでしょう

@muukii muukii merged commit da41d5b into main Oct 28, 2024
@muukii muukii deleted the muukii/any branch October 28, 2024 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants