ux: Profile Edit Improvements (#2376)
This PR adds improvements to the profile edit view. The banner image is changed from the old ostrich image to the fresh new damoose. The image and banner url text entries have been removed from the edit form and now live under the image selector menu. Selecting the Image URL menu option presents a sheet where a user can update the image URL. There are now safe guards in place for users who update their profile, if they make any changes and try to navigate back to home they will get an alert asking if they want to discard changes. The Save button is also more prominent. Changelog-Changed: Changed the default banner from ostriches to damoose Changelog-Added: Added profile edit safe guards Changelog-Changed: Changed image and banner url text fields to new sheet view Signed-off-by: ericholguin <ericholguin@apache.org>
This commit is contained in:
committed by
Daniel D’Aquino
parent
f0b5162205
commit
abfe0f642f
@@ -13,7 +13,7 @@ struct EditBannerImageView: View {
|
||||
var damus_state: DamusState
|
||||
@ObservedObject var viewModel: ImageUploadingObserver
|
||||
let callback: (URL?) -> Void
|
||||
let defaultImage = UIImage(named: "profile-banner") ?? UIImage()
|
||||
let defaultImage = UIImage(named: "damoose") ?? UIImage()
|
||||
|
||||
@State var banner_image: URL? = nil
|
||||
|
||||
@@ -38,7 +38,7 @@ struct EditBannerImageView: View {
|
||||
struct InnerBannerImageView: View {
|
||||
let disable_animation: Bool
|
||||
let url: URL?
|
||||
let defaultImage = UIImage(named: "profile-banner") ?? UIImage()
|
||||
let defaultImage = UIImage(named: "damoose") ?? UIImage()
|
||||
|
||||
var body: some View {
|
||||
ZStack {
|
||||
|
||||
Reference in New Issue
Block a user