mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
[WIP] Premium setup
This commit is contained in:
@@ -11,6 +11,7 @@ import AccountContext
|
||||
public final class ListMultilineTextFieldItemComponent: Component {
|
||||
public final class ExternalState {
|
||||
public fileprivate(set) var hasText: Bool = false
|
||||
public fileprivate(set) var text: NSAttributedString = NSAttributedString()
|
||||
|
||||
public init() {
|
||||
}
|
||||
@@ -206,6 +207,7 @@ public final class ListMultilineTextFieldItemComponent: Component {
|
||||
transition: transition,
|
||||
component: AnyComponent(TextFieldComponent(
|
||||
context: component.context,
|
||||
theme: component.theme,
|
||||
strings: component.strings,
|
||||
externalState: self.textFieldExternalState,
|
||||
fontSize: 17.0,
|
||||
@@ -266,6 +268,7 @@ public final class ListMultilineTextFieldItemComponent: Component {
|
||||
self.separatorInset = 16.0
|
||||
|
||||
component.externalState?.hasText = self.textFieldExternalState.hasText
|
||||
component.externalState?.text = self.textFieldExternalState.text
|
||||
|
||||
return size
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user