Skip to content

Commit

Permalink
Article page | disable webview for content as it's way too buggy
Browse files Browse the repository at this point in the history
  • Loading branch information
bricefriha committed Jan 29, 2025
1 parent e951a3c commit 0c208e9
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion App/Views/ArticlePage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,23 @@
</Grid>
</Grid>
<!-- content -->
<!-- NOTE: a bug prevent use from using WebView on iOS. see: https://github.com/dotnet/maui/issues/21604-->

<Label Text="{Binding SelectedArticle.Content, Mode=OneWay}"
FontFamily="P-Regular"
IsVisible="{OnPlatform Android='false',
iOS='true'}"
TextColor="{StaticResource FontColor}"
Margin="10"
TextType="Html"
Grid.Row="3"
/>
<WebView Grid.Row="3"
BackgroundColor="Transparent">
IsVisible="{OnPlatform Android='true',
iOS='false'}"
x:Name="contentView"
BackgroundColor="Transparent"
>
<WebView.Source>
<HtmlWebViewSource Html="{Binding SelectedArticle.HTMLContent, Mode=OneWay}"
/>
Expand Down

0 comments on commit 0c208e9

Please sign in to comment.