While trying to add an AnimatedSink for UIEdgeInsets for an CollectionView. Compiler is complaining that self.type and self.baseare inaccessibble due to internal protection level.
Why are they specifically marked internal?
extension AnimatedSink where Base: UICollectionView {
var contentInsets: Binder<UIEdgeInsets> {
let animation = self.type
return Binder(self.base) { collectionView, insets in
self.type.animate(view: collectionView, binding: {
guard let collectionView = collectionView as? UICollectionView else { return }
collectionView.contentInsets = insets
})
}
}
}
While trying to add an AnimatedSink for UIEdgeInsets for an CollectionView. Compiler is complaining that
self.type
andself.base
are inaccessibble due to internal protection level. Why are they specifically marked internal?