본문 바로가기
반응형

SWIFT6

[iOS/Swift] Local DB 비교(Core data, SQLite, Realm) Core Data https://developer.apple.com/documentation/coredata Apple Developer Documentation developer.apple.com Core Data: iOS 플랫폼 단에서 지원하는 관계형 데이터베이스 라이브러리 객체 형식으로 저장하고 관리할때 사용하기 좋다. 속도가 빠르다는 단점 thread-safe 하지 않다는 단점 @FetchRequest 라는 프로퍼티 래퍼를 사용해서 편하게 쓸 수 있다. Widget 등을 개발할때 데이터 연동이 아주 편리하다. SQLite https://github.com/stephencelis/SQLite.swift GitHub - stephencelis/SQLite.swift: A type-safe, Swift.. 2022. 12. 7.
[iOS/Swift] Notification 설정, identifier, 매주 특정 요일 반복 iOS 앱에서 Notification을 스케줄 하는 방법 https://developer.apple.com/documentation/usernotifications Apple Developer Documentation developer.apple.com Notification을 위한 request에는 identifier, content, trigger 3가지가 필요하다. identifier는 String으로 받는다. Notification을 설정할 때 identifier를 제대로 정의하고 설정해주는 것이 좋다. 동일한 identifier의 notification을 새로 스케줄링하면 system 상에서 자동으로 이전에 해당 identifier로 스케줄 되어있던 notification을 지우고 새로운 것으로.. 2022. 6. 10.
[iOS/Swift] Xcode CocoaPods Install 코코아팟 설치 방법 CocoaPods 를 사용하는 방법 터미널에서 cocoapods 를 설치해준다. sudo gem install cocoapods 터미널에서 코코아팟을 사용하려는 프로젝트 폴더에 들어가서 pod init을 해준다. pod init Podfile 을 수정하기 위해 vi로 파일을 열어준다. vi Podfile https://github.com/Alamofire/Alamofire GitHub - Alamofire/Alamofire: Elegant HTTP Networking in Swift Elegant HTTP Networking in Swift. Contribute to Alamofire/Alamofire development by creating an account on GitHub. github.com .. 2022. 4. 17.
[iOS/Swift] Instagram App open 인스타그램 앱 연결 Instagram App open 인스타그램 앱 연결 나의 앱에서 다른 앱을 여는 방법 info.plist 에 LSApplicationQueriesSchemes 속에 instagram string을 추가한다. 노란색 네모 부분에 열려고 하는 Instagram 프로필의 이름을 넣어준다. 버튼을 클릭하면 Instagram 어플리케이션으로 연결하거나, 어플이 설치되어있지 않을때는 웹페이지로 연결한다. 참고 https://stackoverflow.com/questions/40403861/how-do-i-open-instagram-app-from-my-ios-app How do I open Instagram app from my iOS app? I am trying to open the Instagram appl.. 2022. 4. 5.
[iOS/Swift] SwiftUI에 적용하는 Clean Architecture Swift에서 프론트를 개발한다면, UIKit과 SwiftUI 라는 갈림길에 놓이게 된다. UIKit은 명령형, 이벤트 중심의 프레임워크 SwiftUI는 선언적, 상태 중심의 프레임워크 SwiftUI는 MVVM architecture가 내재되어 있다. SwiftUI에서 Clean Architecture를 적용하는 방법에 대해 공부해보자. https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html Clean Coder Blog The Clean Architecture 13 August 2012 Over the last several years we’ve seen a whole range of ideas regarding the .. 2022. 3. 29.
[iOS/Swift] Xcode 코드 블록 접기 Fold ⌥ ⌘ ← option + command + left arrow Unfold ⌥ ⌘ → option + command + right arrow Unfold All ⌥ U option + U Fold Methods & Functions ⌥ ⌘ ↑ option + command + up arrow Unfold Methods & Functions ⌥ ⌘ ↓ option + command + down arrow Fold Comment Blocks ⌃ ⇧ ⌘ ↑ control + shift + command + up Unfold Comment Blocks ⌃ ⇧ ⌘ ↓ control + shift + command + down Focus Follows Selection ⌃ ⌥ ⌘ F control + o.. 2022. 3. 28.
반응형