[WIP] Stories

This commit is contained in:
Ali
2023-06-10 19:35:23 +04:00
parent 62f92ee5af
commit bf5a8709cc
11 changed files with 113 additions and 148 deletions

View File

@@ -126,6 +126,10 @@ public final class TextFieldComponent: Component {
self.state?.updated(transition: Transition(animation: .curve(duration: 0.4, curve: .spring)).withUserData(AnimationHint(kind: .textChanged)))
}
public func activateInput() {
self.textView.becomeFirstResponder()
}
func update(component: TextFieldComponent, availableSize: CGSize, state: EmptyComponentState, environment: Environment<Empty>, transition: Transition) -> CGSize {
self.component = component
self.state = state