mirror of
https://github.com/XcodesOrg/XcodesApp.git
synced 2026-04-17 12:45:53 +00:00
Fix some layout issues to improve readability
This commit is contained in:
parent
ff1d2546dc
commit
fb6dd8fac8
1 changed files with 6 additions and 3 deletions
|
|
@ -16,12 +16,12 @@ struct SignInPhoneListView: View {
|
||||||
List(phoneNumbers, selection: $selectedPhoneNumberID) {
|
List(phoneNumbers, selection: $selectedPhoneNumberID) {
|
||||||
Text($0.numberWithDialCode)
|
Text($0.numberWithDialCode)
|
||||||
}
|
}
|
||||||
.frame(height: 200)
|
|
||||||
} else {
|
} else {
|
||||||
AttributedText(
|
AttributedText(
|
||||||
NSAttributedString(string: "Your account doesn't have any trusted phone numbers, but they're required for two-factor authentication. See https://support.apple.com/en-ca/HT204915.")
|
NSAttributedString(string: "Your account doesn't have any trusted phone numbers, but they're required for two-factor authentication.\n\nSee https://support.apple.com/en-ca/HT204915.")
|
||||||
.convertingURLsToLinkAttributes()
|
.convertingURLsToLinkAttributes()
|
||||||
)
|
)
|
||||||
|
Spacer()
|
||||||
}
|
}
|
||||||
|
|
||||||
HStack {
|
HStack {
|
||||||
|
|
@ -42,6 +42,7 @@ struct SignInPhoneListView: View {
|
||||||
}
|
}
|
||||||
.frame(height: 25)
|
.frame(height: 25)
|
||||||
}
|
}
|
||||||
|
.frame(width: 400, height: 200)
|
||||||
.padding()
|
.padding()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -57,7 +58,8 @@ struct SignInPhoneListView_Previews: PreviewProvider {
|
||||||
securityCode: .init(length: 6)),
|
securityCode: .init(length: 6)),
|
||||||
sessionData: AppleSessionData(serviceKey: "", sessionID: "", scnt: "")
|
sessionData: AppleSessionData(serviceKey: "", sessionID: "", scnt: "")
|
||||||
)
|
)
|
||||||
|
.environmentObject(AppState())
|
||||||
|
|
||||||
SignInPhoneListView(
|
SignInPhoneListView(
|
||||||
isPresented: .constant(true),
|
isPresented: .constant(true),
|
||||||
authOptions: AuthOptionsResponse(
|
authOptions: AuthOptionsResponse(
|
||||||
|
|
@ -66,6 +68,7 @@ struct SignInPhoneListView_Previews: PreviewProvider {
|
||||||
securityCode: .init(length: 6)),
|
securityCode: .init(length: 6)),
|
||||||
sessionData: AppleSessionData(serviceKey: "", sessionID: "", scnt: "")
|
sessionData: AppleSessionData(serviceKey: "", sessionID: "", scnt: "")
|
||||||
)
|
)
|
||||||
|
.environmentObject(AppState())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue