You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What if I rebind another UITextField to a Field node or another UIButton to a Button node?
Ideally, I'd like to have a layout pre-build based on model, then I may bind this layout and model to different views.
This is the usual case we deal with UITableView/UITableViewCell.
The use case may be like this:
class MyLayout: <Your Layout Base Class> {
public var button: Button!
public var field: Feild!
func calculateLayout(model: <SomeModel>) {
}
}
...
let layout = MyLayout() // this layout may be hold after calculation
...
layout.button.bind(<some UIButton>) or layout.button.ref = <some UIButton>
layout.feild.bind(<some UITextField>) or layout.field.ref = <some UITextField>
...
The text was updated successfully, but these errors were encountered:
⚠️ Swift UI is out so this is now deprecated in favor of the official alternative. This will no longer be maintained. This was a fun experiment 😎. No updates will be issued unfortunately
What if I rebind another UITextField to a Field node or another UIButton to a Button node?
Ideally, I'd like to have a
layout
pre-build based onmodel
, then I may bind thislayout
andmodel
to differentview
s.This is the usual case we deal with UITableView/UITableViewCell.
The use case may be like this:
The text was updated successfully, but these errors were encountered: