ProfilePicturesView.swift (853B)
1 // 2 // ProfilePicturesView.swift 3 // damus 4 // 5 // Created by William Casarin on 2023-02-22. 6 // 7 8 import SwiftUI 9 10 struct ProfilePicturesView: View { 11 let state: DamusState 12 let pubkeys: [Pubkey] 13 14 var body: some View { 15 HStack { 16 ForEach(pubkeys.prefix(8), id: \.self) { pubkey in 17 ProfilePicView(pubkey: pubkey, size: 32.0, highlight: .none, profiles: state.profiles, disable_animation: state.settings.disable_animation) 18 .onTapGesture { 19 state.nav.push(route: Route.ProfileByKey(pubkey: pubkey)) 20 } 21 } 22 } 23 } 24 } 25 26 struct ProfilePicturesView_Previews: PreviewProvider { 27 static var previews: some View { 28 let pubkey = test_note.pubkey 29 ProfilePicturesView(state: test_damus_state, pubkeys: [pubkey, pubkey]) 30 } 31 }