Many smartphone users keep their eyes glued to the screens while texting and walking which can cause them to stumble over or bump into obstacles.
Apple's 'transparent texting' aims to solve this problem by overlaying messages on a live video feed from the rear camera of the smartphone.
This will allow users to see what is happening beyond their phone and text at the same time.
The patent describes how the transparency feature could be activated by pressing a transparency button within a texting session that switches on the video feed.
Also Read
The feature would then ensure text bubbles appear overlaid over the live background video. The text bubbles themselves could be opaque or semi-transparent, according to Tech Crunch.
"Alternative embodiments of the invention can be applied to virtually any computer-executable application in which text is presented over a background," the patent application said.
A recent study by researchers from University at Buffalo in the US found that texting while walking may result in more injuries per mile than distracted driving.
The study found that though injuries from car accidents involving texting are often more severe, physical harm resulting from texting and walking occurs more frequently.