|
|
@ -12,7 +12,7 @@ struct FollowUserView: View { |
|
|
|
let damus_state: DamusState |
|
|
|
|
|
|
|
var body: some View { |
|
|
|
HStack(alignment: .top) { |
|
|
|
HStack { |
|
|
|
let pmodel = ProfileModel(pubkey: target.pubkey, damus: damus_state) |
|
|
|
let followers = FollowersModel(damus_state: damus_state, target: target.pubkey) |
|
|
|
let pv = ProfileView(damus_state: damus_state, profile: pmodel, followers: followers) |
|
|
@ -25,6 +25,8 @@ struct FollowUserView: View { |
|
|
|
ProfileName(pubkey: target.pubkey, profile: profile, contacts: damus_state.contacts, show_friend_confirmed: false) |
|
|
|
if let about = profile.flatMap { $0.about } { |
|
|
|
Text(about) |
|
|
|
.lineLimit(3) |
|
|
|
.font(.footnote) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -51,6 +53,7 @@ struct FollowersView: View { |
|
|
|
FollowUserView(target: .pubkey(pk), damus_state: damus_state) |
|
|
|
} |
|
|
|
} |
|
|
|
.padding() |
|
|
|
} |
|
|
|
.navigationBarTitle("\(Profile.displayName(profile: profile, pubkey: whos))'s Followers") |
|
|
|
.onAppear { |
|
|
@ -78,6 +81,7 @@ struct FollowingView: View { |
|
|
|
FollowUserView(target: .pubkey(pk), damus_state: damus_state) |
|
|
|
} |
|
|
|
} |
|
|
|
.padding() |
|
|
|
} |
|
|
|
.onAppear { |
|
|
|
following.subscribe() |
|
|
|