-
프레임워크 vs 라이브러리 차이점 비교하기iOS 2023. 8. 7. 14:51
프레임워크
Foundation, UIKit, ...
개발자에게 뼈대를 제공
개발자는 제공된 뼈대 위에서 원하는 코드를 작성할 수 있다
필수적인 코드, 앱의 구동, 메모리 관리, 데이터베이스 연동 등을 담당한다
라이브러리
Alamofire, SwiftyJSON, ...
도구같은 존재
개발자는 미리 구현해둔 도구를 통해 필요한 곳에 사용할 수 있다
* 프레임워크는 라이브러리를 포함
제어 흐름
프레임워크는 코드의 전반적인 흐름을 가지고 있기 때문에 제어권이 프레임워크에 존재 - 제어의 역전(IoC)
라이브러리는 개발자가 필요할 때 가져다 쓰는 용도로써, 제어권이 개발자에게 존재
'iOS' 카테고리의 다른 글
[Tuist] 프로젝트의 전반적인 관리에 용이한 Tuist에 대해 알아보기 (0) 2023.07.07 [Swift] 동시성 프로그래밍 방법(+동기/비동기에 대한 이해) (0) 2023.05.26