매개 변수 인수로 스크롤 위치에 대한 옵션 집합을 전달하려고하지만 문제가 발생했습니다.scrollpositions에 대한 매개 변수로 옵션 세트를 전달하는 방법은 무엇입니까?
누구든지 어떻게 작성 할 수 있습니까?
func selectCurrentWallpaperCell() { //want to pass parameter here
let currentWallpaperID = self.wallpaperManager.currentWallpaperID
if let index = self.wallpapers.index(where: { $0.id == currentWallpaperID }) {
let indexPath = IndexPath(item: index, section: 0)
self.collectionView.selectItem(at: indexPath, animated: true, scrollPosition: UICollectionViewScrollPosition()) // how to use in scrollposition?
}
}