mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-28 17:03:38 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
19 lines
610 B
Swift
19 lines
610 B
Swift
final class SubgroupCell: UITableViewCell {
|
|
@IBOutlet private var subgroupTitleLabel: UILabel!
|
|
@IBOutlet private var subgroupSubtitleLabel: UILabel!
|
|
@IBOutlet private var subgroupVisibleMark: Checkmark!
|
|
|
|
typealias CheckHandlerClosure = (Bool) -> Void
|
|
var checkHandler: CheckHandlerClosure?
|
|
|
|
func config(_ subgroup: ISubgroupViewModel) {
|
|
subgroupTitleLabel.text = subgroup.subgroupName
|
|
subgroupSubtitleLabel.text = subgroup.subtitle
|
|
subgroupVisibleMark.isChecked = subgroup.isVisible
|
|
}
|
|
|
|
@IBAction private func onCheck(_ sender: Checkmark) {
|
|
checkHandler?(sender.isChecked)
|
|
}
|
|
}
|