Code | PreView |
import SwiftUI
import VText
struct VText_Test: View {
var body: some View {
VStack{
HStack(spacing: 32){
VText(text: "Hello World!")
VText(text: "Hello World!", fontWeight: .black, fontSize: 25, spacing: 10, alignment: .center)
}
}
}
}
- If the number of texts decreases, it crashes, and if the number of texts increases, it is not displayed properly.
- ex) Hello = 5, Hi = 2