Commit ec398ec2 authored by Pedro Cavaleiro's avatar Pedro Cavaleiro
Browse files

Added option to set initial size on text field

parent f74edf3f
......@@ -44,6 +44,11 @@ struct ContentView: View {
}
```
If for some reason the MultiTextField does not appear on step 2 initialize with a custom size (recommend 36)
```swift
@ObservedObject var obj: ObservedMultiTextField = ObservedMultiTextField(size: 36)
```
## Initializers
All fields except text are optional
......
......@@ -86,5 +86,8 @@ public class ObservedMultiTextField: ObservableObject {
@Published public var size: CGFloat = 0
public init() { }
public init(size: CGFloat) {
self.size = size
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment