makeeyaf / bindingwithcell Goto Github PK
View Code? Open in Web Editor NEW재바인딩 문제 테스트
재바인딩 문제 테스트
탭 이벤트로 UISwitch
애니메이션 동작이 시작되는 동작과 tableView.reloadData()
로 셀이 다시 그려지며 UISwitch
의 값을 지정하는 동작이 UISwitch
의 애니메이션 상태에 대한 Race Condition을 만들어 발생하는 문제.
놀랍게도 RxSwift의 .distinctUntilChanged()
는 첫 이벤트는 비교할 대상이 없으므로 이벤트를 발생시키지 않지만 Combine의 .removeDuplicates()
는 비교할 대상이 없으면 이벤트를 통과시킨다. 아마도 nil
이라고 생각하는게 아닐까?
따라서 할당과 동시에 self?.tableView.reloadData()
가 돌게되며 바인딩 이벤트가 루프에 빠지게된다.
RxSwift와 Combine을 사용한 UIKit 기반의 뷰를 만들고, Combine + SwiftUI 뷰를 만든다.
재바인딩 문제가 있도록 만든다.
바인딩이 증식하는 문제를 수정한다
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.