Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Priva28 authored Jan 17, 2023
1 parent d1cc2eb commit a8f584e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ HostingPassthrough allows you to fix this by inheriting `HostingParentController

Some cool logic will then be applied overriding the `hitTest` method, which ignores any touches in parts of a `UIHostingController` that don't contain a SwiftUI view and pass it to whatever is underneath instead.

❇️ **Update** ❇️ : You can now inherit or initalise a `HostingParentView` instead of `UIView`, in the case that you aren't adding the `UIHostingController` to a parent view controller. While you should always add the `UIHostingController` to a parent view controller if possible to correctly manage view lifecycle, there may be instances where you are for example adding SwiftUI components to a reusable custom UIView in which case using `HostingParentView` would be acceptable.

<br />
<br />

Expand Down

0 comments on commit a8f584e

Please sign in to comment.