dwarvesf / CodeViewer

A custom code editor SwiftUI view
MIT License
146 stars 19 forks source link

@State variable can not be stored #7

Closed L1cardo closed 4 years ago

L1cardo commented 4 years ago

After I change the @State variable, the variable can not be print correctly, it is still the old value.

2020-09-17 17-49-30 2020-09-17 17_50_38

phucledien commented 4 years ago

Thanks for raising the issue @L1cardo. Currently the lib just support one way binding. I will update it asap 👍

phucledien commented 4 years ago

Just support the binding 2 way at version 1.2.1 👍