diff --git a/site/posts/2020-08-25-swiftui-expanding-text-view.md b/site/posts/2020-08-25-swiftui-expanding-text-view.md index a050c3c..a7a8936 100644 --- a/site/posts/2020-08-25-swiftui-expanding-text-view.md +++ b/site/posts/2020-08-25-swiftui-expanding-text-view.md @@ -77,7 +77,7 @@ The wrapping SwiftUI view is pretty simple. It passes the string binding through struct ExpandingTextView: View { @Binding var text: String let minHeight: CGFloat = 150 - @State private var textViewHeight: CGFloat? + @State private var height: CGFloat? var body: some View { WrappedTextView(text: $text, textDidChange: self.textDidChange)