diff options
| author | Christian Cleberg <[email protected]> | 2026-04-12 11:54:47 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-04-12 11:54:47 -0500 |
| commit | 92fb89cd35588ee36190c95b1af1e9595b397fae (patch) | |
| tree | 7aeac789933ebe40fdbb29fd9d401f42ffe25c86 /Hutch/Views/Lookup/UserProfileView.swift | |
| parent | 9e48e4681487b1c69577c0e9e5f83d8d8225e494 (diff) | |
| download | hutch-92fb89cd35588ee36190c95b1af1e9595b397fae.tar.gz hutch-92fb89cd35588ee36190c95b1af1e9595b397fae.tar.bz2 hutch-92fb89cd35588ee36190c95b1af1e9595b397fae.zip | |
fix: ensure looked-up users' bios render correctly
Diffstat (limited to 'Hutch/Views/Lookup/UserProfileView.swift')
| -rw-r--r-- | Hutch/Views/Lookup/UserProfileView.swift | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Hutch/Views/Lookup/UserProfileView.swift b/Hutch/Views/Lookup/UserProfileView.swift index b467c63..b694738 100644 --- a/Hutch/Views/Lookup/UserProfileView.swift +++ b/Hutch/Views/Lookup/UserProfileView.swift @@ -74,9 +74,12 @@ struct UserProfileView: View { } } - if let bio = user.bio { + if let bio = user.bio, !bio.isEmpty { Section("Bio") { - Text(bio) + Text(profileBioAttributedString(bio)) + .frame(maxWidth: .infinity, alignment: .leading) + .tint(.accentColor) + .textSelection(.enabled) } } |
