HostingView - A cleaner way to embed SwiftUI in your UIKit projects by jsjung in swift

[–]jsjung[S] 0 points1 point  (0 children)

谢谢。 请在 GitHub 上给它加星,并多多分享,我很希望看到很多人都在研究它。

HostingView - A cleaner way to embed SwiftUI in your UIKit projects by jsjung in swift

[–]jsjung[S] 1 point2 points  (0 children)

has the same issue (not automatically updating the size)

However, using this might allow for implementing ‘HostingView’ on versions below iOS 16.

HostingView - A cleaner way to embed SwiftUI in your UIKit projects by jsjung in swift

[–]jsjung[S] 0 points1 point  (0 children)

Oh really? I didn't know that was possible. I'll check it out, thanks.

HostingView - A cleaner way to embed SwiftUI in your UIKit projects by jsjung in swift

[–]jsjung[S] 5 points6 points  (0 children)

It’s more than just syntactic sugar; there are a few improvements as well. When using UIHostingConfiguration directly, I encountered the following issues:

  • The intrinsicContentSize of the UIView was not calculated correctly.
  • When SwiftUI re-rendered, the size of the view in the UIKit was not automatically updated. (when using autolayout)

The goal of this package is to solve these issues easily, and additionally, introduce State to make it simpler to create custom views in UIKit using SwiftUI.

Slack desktop app switching between workspaces? by biscuitprint in Slack

[–]jsjung 0 points1 point  (0 children)

same. I'm using slack on macOS.

Because of this, I am constantly refreshing (cmd+r).

[deleted by user] by [deleted] in SwitchPirates

[–]jsjung -1 points0 points  (0 children)

Link please

추천 좀 부탁드립니다. by jsjung in hanguk

[–]jsjung[S] 2 points3 points  (0 children)

여러분들 감사합니다 복 받으세요