import Foundation final class MutableContactPeerIdsView { fileprivate var peerIds: Set init(peerIds: Set) { self.peerIds = peerIds } func replay(replace replacePeerIds: Set) -> Bool { if self.peerIds != replacePeerIds { self.peerIds = replacePeerIds return true } else { return false } } } public final class ContactPeerIdsView { public let peerIds: Set init(_ mutableView: MutableContactPeerIdsView) { self.peerIds = mutableView.peerIds } }