Line limit

This commit is contained in:
lumaa-dev 2024-09-22 10:36:42 +02:00
parent 4fa3c6a911
commit 889ad07a03
4 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,3 @@
// Made by Lumaa
import Foundation

View File

@ -79,6 +79,7 @@ extension View {
func accountRowLabel(_ foreground: Color) -> some View { func accountRowLabel(_ foreground: Color) -> some View {
self self
.multilineTextAlignment(.leading) .multilineTextAlignment(.leading)
.lineLimit(1)
.font(.headline.bold().width(.condensed)) .font(.headline.bold().width(.condensed))
.foregroundStyle(foreground) .foregroundStyle(foreground)
} }

Binary file not shown.

View File

@ -0,0 +1,13 @@
// Made by Lumaa
import SwiftUI
struct AboutSubclubView: View {
var body: some View {
Text(/*@START_MENU_TOKEN@*/"Hello, World!"/*@END_MENU_TOKEN@*/)
}
}
#Preview {
AboutSubclubView()
}