Last active
November 21, 2023 12:33
-
-
Save alemohamad/865f1d575e0637af83e9703beda24015 to your computer and use it in GitHub Desktop.
Furigana concept for SwiftUI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
var body: some View { | |
HStack(spacing: 0) { | |
FuriganaView(moji: "振", furigana: "ふ") | |
FuriganaView(moji: "り") | |
FuriganaView(moji: "仮名", furigana: "がな") | |
} | |
} | |
} | |
#Preview { | |
ContentView() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment