diff --git a/README.md b/README.md index eb24614..7fd91f7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@
-
+
@@ -53,29 +53,29 @@ Done. Your table is ready. Your cells have to conform to `ConfigurableCell` prot
```swift
class StringTableViewCell: UITableViewCell, ConfigurableCell {
- func configure(with string: String) {
+ func configure(with string: String) {
- textLabel?.text = string
- }
+ textLabel?.text = string
+ }
}
class UserTableViewCell: UITableViewCell, ConfigurableCell {
- static var estimatedHeight: CGFloat? {
- return 100
- }
-
- // is not required to be implemented
- // by default reuse id is equal to cell's class name
- static var reuseIdentifier: String {
- return "my id"
+ static var estimatedHeight: CGFloat? {
+ return 100
}
- func configure(with user: User) {
+ // is not required to be implemented
+ // by default reuse id is equal to cell's class name
+ static var reuseIdentifier: String {
+ return "my id"
+ }
+
+ func configure(with user: User) {
- textLabel?.text = user.name
- detailTextLabel?.text = "Rating: \(user.rating)"
- }
+ textLabel?.text = user.name
+ detailTextLabel?.text = "Rating: \(user.rating)"
+ }
}
```
You could have as many rows and sections as you need.
@@ -86,12 +86,12 @@ It nice to have some actions that related to your cells:
```swift
let action = TableRowAction