You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
session-ios/SessionUIKit/Components/ProfilePictureView+SwiftUI....

24 lines
628 B
Swift

// Copyright © 2023 Rangeproof Pty Ltd. All rights reserved.
import SwiftUI
struct ProfilePictureView_SwiftUI: UIViewRepresentable {
// typealias UIViewType = ProfilePictureView
@Binding var info: ProfilePictureView.Info
@Binding var additionalInfo: ProfilePictureView.Info?
var size: ProfilePictureView.Size
func makeUIView(context: Context) -> ProfilePictureView {
ProfilePictureView(size: size)
}
func updateUIView(_ uiView: ProfilePictureView, context: Context) {
uiView.update(
info,
additionalInfo: additionalInfo
)
}
}