Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal supported iOS version? #128

Closed
GuidoNeele opened this issue Jan 29, 2021 · 7 comments
Closed

Minimal supported iOS version? #128

GuidoNeele opened this issue Jan 29, 2021 · 7 comments
Assignees

Comments

@GuidoNeele
Copy link

What's the minimal supported iOS version? The HTML labels aren't showing in iOS 12 and iOS 13. Is this a bug in my app or is it indeed iOS 14 and higher?

@GuidoNeele
Copy link
Author

Found a way to fix this. Turns out iOS 12 and 13 need to have TextColor set. If the code below is added to the app.xaml the labels will show.

<Style ApplyToDerivedTypes="True" TargetType="htmlLabel:HtmlLabel">
    <Setter Property="TextColor" Value="Black" />
</Style>

@GuidoNeele
Copy link
Author

BTW this can be tested with the tests that are included with the project. If HtmlLabel.Forms.Plugin.Tests.App.iOS is run on the simulator with iOS 12 or 13 only the red text will show up. After adding the style tag to app.xaml all labels will be visible.

@GuidoNeele
Copy link
Author

Issue looks to be related to #126

@matteobortolazzo
Copy link
Owner

@GuidoNeele thanks a lot! I will update the README!
Why do you think it is related to 126?

@GuidoNeele
Copy link
Author

Well the first line "I have a issue that both text and background color get white on a HtmlLabelPlugin when running an iPadOS app on M1 Mac." resembles the experience I had when running the test/sample application. Red text was showing but the other labels looked like white on white. Wasn't really white on white because the height was 0 but I can imagine you could perceive it that way if other labels with color do show. Would be helpful if @mikaelsundin could check if adding the piece of XAML works out for him. If it works out, it works out, if it doesn't then something else is going on.

@mikaelsundin
Copy link

mikaelsundin commented Mar 9, 2021

I have tested today with adding this to app.xaml

<Style ApplyToDerivedTypes="True" TargetType="htmlLabel:HtmlLabel">
    <Setter Property="TextColor" Value="Black" />
</Style>

The html label content is still white on white except links on Macbook Air M1.

@bakerhillpins
Copy link
Contributor

As mentioned in a later comment in #126 check to see if your iOS device is in dark mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants