Skip to content

Commit

Permalink
Merge pull request #48 from nasircsms/main
Browse files Browse the repository at this point in the history
- updated condition for tvOS
  • Loading branch information
dkk committed Oct 11, 2023
2 parents f1cc686 + 8ad685a commit c63a204
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Sources/WrappingHStack/WrappingHStack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@ public extension WrappingHStack {
return .infinity
}

#if os(iOS) || os(visionOS)
let hostingController = UIHostingController(rootView: view)
#else
#if os(macOS)
let hostingController = NSHostingController(rootView: view)
#else
let hostingController = UIHostingController(rootView: view)
#endif
return hostingController.sizeThatFits(in: CGSize(width: CGFloat.greatestFiniteMagnitude, height: CGFloat.greatestFiniteMagnitude)).width
}
Expand Down

0 comments on commit c63a204

Please sign in to comment.