본문 바로가기

분류 전체보기22

티스토리 코드블럭 못생겼다. 그냥 github에 코드 예제를 올리고, 블로그에는 그냥 코드를 이미지 캡쳐해서 올리는게 낫겠다. 디자인은 다른거 써봐도 결국 indent가 문제... 좀 더 잘 만들어주면 좋겠다 ㅠㅠ 2021. 6. 2.
[RxSwift Community] RxDataSource Basic편 RxDataSource Github: https://github.com/RxSwiftCommunity/RxDataSources RxSwiftCommunity/RxDataSources UITableView and UICollectionView Data Sources for RxSwift (sections, animated updates, editing ...) - RxSwiftCommunity/RxDataSources github.com *예제코드는 아래 Github에 있습니다. 참고하세요:) https://github.com/Developer-Paul-t/RxSwift Developer-Paul-t/RxSwift Contribute to Developer-Paul-t/RxSwift development .. 2021. 6. 1.
[RxSwift Community] Action 사용하기 Action Github : https://github.com/RxSwiftCommunity/Action RxSwiftCommunity/Action Abstracts actions to be performed in RxSwift. Contribute to RxSwiftCommunity/Action development by creating an account on GitHub. github.com RxSwift 사용해서 개발할 때, 유용한 라이브러리를 소개하고자 한다. 첫 번째는 Action인데, 순서는 필자의 마음대로... Action은 많은 구글링에도 많은 내용이 없기도 하고 Github의 내용으로도 충분히 이해가 가기 때문에 위의 링크를 기반으로 설명을 이어나가려고 한다. 1. 소개 이 라이브러리는.. 2021. 6. 1.
weak와 unowned의 차이점 Retain Cycle과 그로 인한 Memory Leak을 방지하기 위해서는 weak과 unowned를 마주하는 것은 개발의 당연한 수순이다. 그리고 이 둘을 헷갈려하는 것도 자연스러운 수순이다. 이미 많은 글이 구글에 있기 때문에 자세한 설명은 그들에게 맡기고, 왜 이 둘 사이를 헷갈려하는지 어떻게 이해하는 것이 좋은지에 살펴보자. 핵심은 Reference Count가 0일 때, nil의 '보장' 여부를 정확하게 이해하는 것이다. Objective-C에서는 ARC가 선택적이지만 Swift에는 무조건 ARC를 통해서 메모리를 관리하게 된다. ARC는 Complie 단계에서 자동으로 Reference Count(retain, release)를 분석해서 메모리 해제여부를 결정하는데, 이 때 weak와 uno.. 2021. 5. 31.