Why do my chords switch between sharp and flat when viewed?

Why do my chords switch between sharp and flat when viewed?

This happens if the key of the song is not properly declared. OnSong uses the enharmonic preference (sharp or flat) of the key that is being displayed. For instance, if OnSong thinks the song being displayed is in the Key of C or F, then the enharmonic preference is flat. If your song contains an F#, it would be displayed as a Gb to match the enharmonic preference of the key.

To correct this behavior, open the Song Editor by tapping on the pencil icon in the menubar.

Take note to the chords used to write the song and then tap on the "info" icon to open the Metadata Editor menu:

Then, locate the Key row to select the key that the song is written in:

While you can select a key that you know the song is written in, you can also tap on the "Detect" button in the upper right. This will review the chords in the song and make a best guess as to the key of the song. When you're all done, tap to go back and close the menu and tap "Done". This should correct the issue.

If you would like the song in another key, you can just open the Style Preferences menu (sliders icon) and tap on the Chords tab to choose the key you want the song to display in: