Skip to content

Commit d7c7f04

Browse files
committed
cleanup code
1 parent a394ad0 commit d7c7f04

File tree

4 files changed

+19
-51
lines changed

4 files changed

+19
-51
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
//
2+
// ConfigurableItem+BuilderContext.swift
3+
// ReactiveDataDisplayManager
4+
//
5+
// Created by Никита Коробейников on 26.07.2023.
6+
//
7+
8+
import UIKit
9+
import ReactiveDataDisplayManager
10+
11+
public extension ConfigurableItem where Self: RegistrationTypeProvider {
12+
13+
static func build<Context: BuilderContext>(in ctx: Context.Type, with model: Model) -> Context.GeneratorType {
14+
ctx.gen(Self.self, model: model)
15+
}
16+
17+
}
18+

Components/Sources/Common/Extensions/ConfigurableItem+Context.swift

Lines changed: 0 additions & 17 deletions
This file was deleted.

Components/Sources/Table/Extensions/UITableViewCell+TableContext.swift

Lines changed: 0 additions & 34 deletions
This file was deleted.

Example/ReactiveDataDisplayManager/Table/StackCellExampleViewController/StackCellExampleViewController.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ private extension StackCellExampleViewController {
9595
label.text(.string("Wrapped LabelView"))
9696
label.style(.init(color: .systemBlue, font: .systemFont(ofSize: 16)))
9797
})
98+
// TODO: - resolve crash with neb loading
9899
// TitleTableViewCell.build(in: ctx, with: "Cell outside from stack")
99100
StackView.build(in: ctx, with: .build { hStack in
100101
hStack.background(.solid(.systemGreen))

0 commit comments

Comments
 (0)