Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Japanese font without Japanese character causes the clip at the bottom.
import SwiftUI
struct SmapleView: View {
let font = Font.custom("HiraginoSans-W3", size: 50)
let borderColor = Color(.systemBlue)
var body: some View {
VStack(spacing: 10) {
Text("Copy")
.font(font)
.border(borderColor)
Text("コピー Copy")
.font(font)
.border(borderColor)
}
}
}
struct SmapleView_Previews: PreviewProvider {
static var previews: some View {
SmapleView()
}
}
@Koze

This comment has been minimized.

Copy link
Owner Author

@Koze Koze commented May 8, 2020

Screenshot 2020-05-09 1 11 53

@Koze

This comment has been minimized.

Copy link
Owner Author

@Koze Koze commented May 8, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.