Last active
June 28, 2021 23:49
-
-
Save novinfard/48ff0029032b69fda4715467918c6e2f to your computer and use it in GitHub Desktop.
[SwiftUI sample view for RTL article]
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 { | |
let text = "این یک متن تست است. در این متن به بررسی عملکرد زبان های راست به چپ میپردازیم." | |
var body: some View { | |
VStack(spacing: 16) { | |
Text(text) | |
HStack { | |
Spacer() | |
.frame(width: 16) | |
Image(systemName: "pencil.circle.fill") | |
.resizable() | |
.frame(width: 100, height: 100) | |
Spacer() | |
} | |
Spacer() | |
} | |
} | |
} | |
struct ContentView_Previews: PreviewProvider { | |
static var previews: some View { | |
ContentView() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment