Andy Res
Andy Res

Reputation: 16043

Syntax highlighting not working for iosApp

I am following the hands on tutorial on KMM, and reached the point where I should write the iOS part of the app, however, when I head over to any of the .swift files, there's no syntax highlighting, the content appears as a plain text file.

enter image description here

From what I see, the iosApp is not recognized at all as a module (like the androidApp, that has the name of the module highlighted via bold font), I suppose that is the issue.

Any thoughts on how to fix this?

Upvotes: 3

Views: 877

Answers (2)

Kyle Venn
Kyle Venn

Reputation: 8038

If anyone runs into the same issue with AppCode not highlighting Swift, I just had to close the project and reopen it.

Upvotes: 0

Kevin Galligan
Kevin Galligan

Reputation: 17312

You'll need to use Xcode or (possibly) AppCode. Android Studio and the KMM plugin do not understand or highlight Swift code directly.

Upvotes: 2

Related Questions