Apple says a bug sparked a glitch which sees “Trump” appear briefly onscreen when a user says the word “racist” when using its voice-to-text feature.