Listing styles

This commit is contained in:
Arkadiusz Fal
2022-12-12 01:18:29 +01:00
parent c2d16774f7
commit 25da312966
19 changed files with 305 additions and 45 deletions

View File

@@ -74,6 +74,10 @@ struct Account: Defaults.Serializable, Hashable, Identifiable {
}
var description: String {
guard !isPublic else {
return name
}
guard !name.isEmpty else {
return shortUsername
}