dwarvesf / CodeViewer

A custom code editor SwiftUI view
MIT License
140 stars 17 forks source link

@State variable can not be stored #7

Closed L1cardo closed 3 years ago

L1cardo commented 3 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 3 years ago

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

phucledien commented 3 years ago

Just support the binding 2 way at version 1.2.1 👍