A simple UI component for controlling which days of the week a thing is active on.
Swift Package Manager
In Xcode got to File -> Swift Packages -> Add Package Dependency and paste in the repo's url: https://github.com/zanew/DayOfWeekCollectionView
The control is backed by an
let activeDays = DaysOfWeekActive.weekdaysOnly let weekCollectionView = DayOfWeekCollectionView(activeDays: activeDays)
picker.activeDays = [.saturday, .sunday]
weekCollectionView.backgroundColor = .secondarySystemGroupedBackground weekCollectionView.badgeSelectionColor = .systemOrange