Created
February 6, 2020 10:21
-
-
Save kumamotone/77f771bc6376f04d670ea8e31cf0cc5f to your computer and use it in GitHub Desktop.
仮想的にUIHostingControllerのなかにぶちこんで高さを取得する
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
let canvas = swiftuiView | |
let hosting = UIHostingController(rootView: canvas) | |
hosting.view.frame = window.frame | |
window.addSubview(hosting.view) | |
window.makeKeyAndVisible() | |
hosting.view // これが UIView |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment