0

I'm having an issue with a ScrollView on iOS after upgrading to .NET 9 (MAUI). The ScrollView area appears (the white/scrollable area is there) but the text inside is not visible at all. On Android everything works normally. I'm looking for help to understand what's going on and how to fix it.

Context

  • .NET SDK: 9.x
  • .NET MAUI (iOS)
  • Affected platform: iOS (simulator and physical device)
  • Android behavior: OK (text visible and scroll works)
  • iOS behavior: ScrollView is present but the Labels' text is not rendered (empty space)
  • No runtime exceptions are thrown

Minimal reproducible example:

<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MyApp.MainPage">
  <ScrollView>
    <VerticalStackLayout Padding="20" Spacing="12">
      <Label Text="Title" FontSize="24" />
      <Label Text="Paragraph 1 — Lorem ipsum dolor sit amet..." />
      <Label Text="Paragraph 2 — Lorem ipsum dolor sit amet..." />

    </VerticalStackLayout>
  </ScrollView>
</ContentPage>
2
  • Your minimal reproducible example works as expected for me. Testing on iOS 26.0 simulator (net9.0-ios). Which version of iOS are you testing on? Are you using any type of global styles for your Labels? What happens if you use ScrollView + Grid instead of ScrollView + VerticalStackLayout? Commented Nov 4 at 9:49
  • Give the ScrollView a Height; maybe it's collapsed. When you work on a UI, and need to get your bearings, add a (temporary) Border here and there; or BackgroundColor so you can see if things are actually getting rendered, as expected. Commented Nov 4 at 15:07

1 Answer 1

0

Ok, after some research I found an old workaround in my project related to KeyboardAutoScroll on iOS, and it turns out this is what broke the ScrollView in .NET 9.

Thanks for your responses!

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.