Code blocks on iOS don't show the right language

WHAT IS THE BUG

When creating a code block on desktop and setting the language to “C” for example, on iOS the Code block shows up as “swift”. There are many languages that work on iOS but also a few that don’t have support.

HOW TO REPRODUCE IT

  1. Create code block on desktop
  2. Set language to “C”
  3. Check that iOS shows “swift”

THE EXPECTED BEHAVIOR

All languages should be equally supported on desktop and mobile.

SYSTEM INFORMATION

  • OS:
    iOS 16.3
  • Device:
    iPhone 11
  • Anytype Version:
    0.21.0

still in
Desktop 0.33.3
ios 0.23.4

This report has been added to our issue tracker and received by the Development Team.

Can confirm.

2 Likes

This report has been added to our issue tracker and received by the Development Team.

This still happens on v0.22.0!

Hey, this works fine for me. Just created a code block and the iOS shows the correct one every time I switch it.

Hey @Flip, did you test with multiple languages, including those that are not yet supported on mobile, e.g. C or C#?
Seems like they are not implemented on iOS yet and therefore always show up as the default language - “swift”. Could you check please? :slight_smile:

@jannis You are right.
I randomly selected a few and all of them worked. The ones you mentioned then show “swift” on iOS. Thank you for pointing that out.

1 Like

Tested with C and works as expected on Android 0.23.17

1 Like

According to repo, should be fixed in next release, 0.26.0.
Need to confirm once it’s out.

This issue has been fixed by the Development Team and will be implemented in an upcoming release.