-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Embedding an iOS ContentView or Layout does not get a size #19340
Copy link
Copy link
Open
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresentermigration-compatibilityXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-ConvertXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convertplatform/iosplatform/macosmacOS / Mac CatalystmacOS / Mac Catalystt/bugSomething isn't workingSomething isn't workingt/native-embedding
Milestone
Metadata
Metadata
Assignees
Labels
area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenterStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresentermigration-compatibilityXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-ConvertXamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convertplatform/iosplatform/macosmacOS / Mac CatalystmacOS / Mac Catalystt/bugSomething isn't workingSomething isn't workingt/native-embedding
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
If I embed a button or entry, the default layout by iOS works as expected.
However, if there is a layout or content view, the view has a size of 0x0 and thus none of the items are interactable since they are all outside the bounds of the views.
Steps to Reproduce
Link to public reproduction project repository
https://github.com/mattleibow/EmbeddedMauiApps
Version with bug
8.0.3
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS, macOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response