{"data":{"allPost":{"edges":[{"node":{"slug":"/post/2022/08/using-functional-binding-to-observe-in-swiftui-19a8","title":"Using Functional Binding to Observe in SwiftUI","subtitle":"","isPublished":true,"createdTime":"2022-08-19T00:00:00.000Z","lastModifiedTime":null,"license":null,"tags":["SwiftUI","Binding","Swift","Observer"],"category":"Programming","file":{"childMdx":{"excerpt":"Story This week, my colleague asked me a question: how to observe user selection\nbehaviors on SwiftUI's  Picker ? This is a question came from real bussiness. Thus I think it worth to take\nme time to solve it. The example code is as shown below and my colleague wanted to observe user's\nbehaviors on…"}}}},{"node":{"slug":"/post/2023/03/adapting-reference-semantics-model-in-swiftui-the-basics-f521","title":"Adapting Reference Semantics Model in SwiftUI - The Basics","subtitle":"","isPublished":true,"createdTime":"2023-03-02T00:00:00.000Z","lastModifiedTime":null,"license":null,"tags":["SwiftUI","Swift","Adaptor","Reference Semantics","Binding"],"category":"Programming","file":{"childMdx":{"excerpt":"Introduction Recently, one of my colleagues had been struggling with porting reference semantics model to SwiftUI with  ObservableObject  and  @StateObject . In this post, since there are many examples talked about porting reference semantics models to SwiftUI this way on the Internet, I'm not going…"}}}}]}},"pageContext":{"slug":"/tag/binding","locale":null,"title":"Tags > Binding","showsPageTitle":true,"keywords":["WeZZard","Pieces of My Soul"],"description":"","items":["e508707d-f31e-5d24-b1ac-2b6a1b6155fc","e1149583-4058-5dd4-8fc3-25534469b2b2"],"paginationInfo":{"basePath":"/tag/binding","pageIndex":0,"pagesCount":1,"previousPageTitle":"Earlier Posts","nextPageTitle":"Later Posts"}}}