SwiftUI: How to build text with subScript and super Script?

Xcode 12 — iOS14

Prafulla Singh

--

In this tutorial, We will be implementing logic to make text with Subscripts and Superscripts.

To implement subscript/superscripts first we need to define a logic to understand what part of text will be carried as sub/super scripts.

1. Any text in ^{} will be treated as superscript…

--

--