Commonly used table cells
CommonCell is a library that provides commonly used table cells for iOS and macOS applications. It includes a variety of cell types, such as text cells, image cells, and more.
You can install CommonCell using Swift Package Manager. Simply add the following line to your Package.swift
file:
.package(url: "https://github.com/eonist/CommonCell.git", .branch("master"))
For iOS see: https://github.com/eonist/SimpleTable
To use CommonCell in your project, simply import the module and use the provided cell types. For example, to use a TextCell in a table view, you can do the following:
import CommonCell
class MyTableViewController: UITableViewController {
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: TextCell.reuseIdentifier, for: indexPath) as! TextCell
cell.configure(with: TextCellData(description: "Title", content: "Some content"))
return cell
}
}
Contributions to CommonCell are welcome! If you find a bug or have a feature request, please open an issue. If you would like to contribute code, please fork the repository and submit a pull request.
CommonCell is available under the MIT license. See the LICENSE file for more information.
- Add screenshot to readme
- Add gif to readme
- Add unit test and gh actions