Profile Editor

Changelog-Added: Added profile edit view
Changelog-Changed: Don't fetch followers right away
This commit is contained in:
William Casarin
2022-12-23 13:13:30 -08:00
parent db763d07fe
commit 79f4223977
5 changed files with 114 additions and 69 deletions

View File

@@ -32,7 +32,7 @@ struct FollowUserView: View {
}
.buttonStyle(PlainButtonStyle())
FollowButtonView(target: target, follow_state: damus_state.contacts.follow_state(target.pubkey), perform: nil)
FollowButtonView(target: target, follow_state: damus_state.contacts.follow_state(target.pubkey))
}
}
}
@@ -53,6 +53,12 @@ struct FollowersView: View {
}
}
.navigationBarTitle("\(Profile.displayName(profile: profile, pubkey: whos))'s Followers")
.onAppear {
followers.subscribe()
}
.onDisappear {
followers.unsubscribe()
}
}
}