autocomplete: add space after replacing occurances

This is more intuitive
This commit is contained in:
William Casarin
2023-01-28 15:50:42 -08:00
parent b6b6d033a8
commit 3af9131afe

View File

@@ -39,7 +39,7 @@ struct UserSearch: View {
guard let pk = bech32_pubkey(user.pubkey) else {
return
}
post = post.replacingOccurrences(of: "@"+search, with: "@"+pk)
post = post.replacingOccurrences(of: "@"+search, with: "@"+pk+" ")
}
}
}