전체 글

· iOS
네부캠 미션을 하면서모듈화를 진행했다.  초기 모듈화 설계를 다음과 같이 하였고,  Data 모듈이 Network 모듈에의존성을 갖고 있어각 모듈이 독립적이어야 한다는클린 아키텍쳐 원칙에 잘 맞지 않았다.  따라서 모듈 구조를일부 수정하였다. DIP(의존성 역전 원칙)를 적용하여,Data 모듈에 인터페이스를 정의하고,Network 모듈에서는 해당 인터페이스를 채택한 구현체를 구현했다.  하지만 이와 같이 모듈화 구조를 변경하면서다음과 같은 에러를 마주하게 되었다. Command SwiftVerifyEmittedModuleInterface failed with a nonzero exit code   첫번째 시도Build Libraries for Distribution 옵션을No로 변경해주었다.  이렇게 되..
· TIL
오늘은 문자열을 어떤 문자를 기준으로 끊을 때 사용하는components(separatedBy: ) 와 split(separator: )의 차이에 대해알아보려고 한다.  더보기> components(separatedBy: ) 와 split(separator: ) 공식 문서 보러 가기  https://developer.apple.com/documentation/foundation/nsstring/1413214-components components(separatedBy:) | Apple Developer DocumentationReturns an array containing substrings from the receiver that have been divided by a given separator...
· TIL
오늘은 Swift의 Stride에 대해 간단히 정리해보겠다. 더보기> stride 관련 공식 문서 (through와 to) 보러 가기 https://developer.apple.com/documentation/swift/stride(from:to:by:) stride(from:to:by:) | Apple Developer DocumentationReturns a sequence from a starting value to, but not including, an end value, stepping by the specified amount.developer.apple.com https://developer.apple.com/documentation/swift/stride(from:through:by:) ..
짱죠니
iOS 개발자 죠니의 인생일지