iosMain.dev.icerock.moko.units.TableUnitsSource.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of units Show documentation
Show all versions of units Show documentation
Composing units into list and show in RecyclerView/UITableView/UICollectionView. Control your lists from common code for mobile (android & ios) Kotlin Multiplatform development
The newest version!
/*
* Copyright 2019 IceRock MAG Inc. Use of this source code is governed by the Apache 2.0 license.
*/
package dev.icerock.moko.units
import platform.UIKit.UITableView
interface TableUnitsSource {
var unitItems: List?
}
fun create(
forTableView: UITableView,
withReloadHandler: UITableViewReloadHandler
): TableUnitsSource {
return object : TableUnitsSource {
private val unitsSource = createUnitTableViewDataSource(forTableView, withReloadHandler)
override var unitItems: List?
get() {
return unitsSource.unitItems
}
set(value) {
unitsSource.unitItems = value
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy