Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions V2exOS/Views/ProfileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ struct ProfileView: View {
HStack {
TextField("Personal Access Token", text: $accessToken, prompt: Text("00000000-0000-0000-0000-000000000000"))
.frame(width: 450)
.onChange(of: accessToken) { newValue in
// https://v2ex.com/settings/tokens 默认选中复制过来是不合法的
accessToken = newValue.trimmingCharacters(in: .whitespacesAndNewlines)
}


Button {
showingPopover.toggle()
Expand Down