mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-05 13:58:40 +00:00
Minor improvements (#46)
This commit is contained in:
parent
8e57f0e63b
commit
6ccd27b2e5
4 changed files with 18 additions and 2 deletions
|
@ -12,7 +12,7 @@ struct AppAccountView: View {
|
||||||
AvatarView(url: account.avatar)
|
AvatarView(url: account.avatar)
|
||||||
if viewModel.appAccount.id == appAccounts.currentAccount.id {
|
if viewModel.appAccount.id == appAccounts.currentAccount.id {
|
||||||
Image(systemName: "checkmark.circle.fill")
|
Image(systemName: "checkmark.circle.fill")
|
||||||
.foregroundColor(.green)
|
.foregroundStyle(.white, .green)
|
||||||
.offset(x: 5, y: -5)
|
.offset(x: 5, y: -5)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,6 +213,21 @@ public struct AccountDetailView: View {
|
||||||
.scrollContentBackground(.hidden)
|
.scrollContentBackground(.hidden)
|
||||||
.background(theme.secondaryBackgroundColor)
|
.background(theme.secondaryBackgroundColor)
|
||||||
.navigationTitle("About")
|
.navigationTitle("About")
|
||||||
|
.toolbar {
|
||||||
|
ToolbarItem(placement: .primaryAction) {
|
||||||
|
Button {
|
||||||
|
isFieldsSheetDisplayed = false
|
||||||
|
} label: {
|
||||||
|
Image(systemName: "xmark")
|
||||||
|
.imageScale(.small)
|
||||||
|
.font(.body.weight(.semibold))
|
||||||
|
.frame(width: 30, height: 30)
|
||||||
|
.background(theme.primaryBackgroundColor.opacity(0.5))
|
||||||
|
.clipShape(Circle())
|
||||||
|
}
|
||||||
|
.foregroundColor(theme.tintColor)
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -27,5 +27,6 @@ public struct EmptyView: View {
|
||||||
}
|
}
|
||||||
.padding(.top, 100)
|
.padding(.top, 100)
|
||||||
.padding(.layoutPadding)
|
.padding(.layoutPadding)
|
||||||
|
.fixedSize(horizontal: false, vertical: true)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -146,7 +146,7 @@ public class StatusEditorViewModel: ObservableObject {
|
||||||
statusText.addAttributes([.foregroundColor: UIColor(Color.label)],
|
statusText.addAttributes([.foregroundColor: UIColor(Color.label)],
|
||||||
range: NSMakeRange(0, statusText.string.utf16.count))
|
range: NSMakeRange(0, statusText.string.utf16.count))
|
||||||
let hashtagPattern = "(#+[a-zA-Z0-9(_)]{1,})"
|
let hashtagPattern = "(#+[a-zA-Z0-9(_)]{1,})"
|
||||||
let mentionPattern = "(@+[a-zA-Z0-9(_).]{1,})"
|
let mentionPattern = "(@+[a-zA-Z0-9(_).-]{1,})"
|
||||||
let urlPattern = "(?i)https?://(?:www\\.)?\\S+(?:/|\\b)"
|
let urlPattern = "(?i)https?://(?:www\\.)?\\S+(?:/|\\b)"
|
||||||
|
|
||||||
do {
|
do {
|
||||||
|
|
Loading…
Reference in a new issue