{"id":3427,"url":"https://github.com/jphong1111/awesome-ios-developer","last_synced_at":"2025-08-03T14:31:26.369Z","repository":{"id":38202550,"uuid":"356388461","full_name":"jphong1111/awesome-ios-developer","owner":"jphong1111","description":"List of awesome iOS \u0026 Swift stuff!!","archived":false,"fork":false,"pushed_at":"2024-05-23T04:58:54.000Z","size":10356,"stargazers_count":794,"open_issues_count":0,"forks_count":47,"subscribers_count":8,"default_branch":"main","last_synced_at":"2024-08-13T12:55:25.943Z","etag":null,"topics":["apple","awesome","awesome-list","awesome-readme","ios","ios-app","ios-swift","swift","swift5","useful-knowledge","usefull","usefull-materials"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jphong1111.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-04-09T20:16:11.000Z","updated_at":"2024-08-12T20:12:01.000Z","dependencies_parsed_at":"2024-01-11T20:46:36.137Z","dependency_job_id":"1a47c710-3123-42c8-8260-4c104cd62b2d","html_url":"https://github.com/jphong1111/awesome-ios-developer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphong1111%2Fawesome-ios-developer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphong1111%2Fawesome-ios-developer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphong1111%2Fawesome-ios-developer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jphong1111%2Fawesome-ios-developer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jphong1111","download_url":"https://codeload.github.com/jphong1111/awesome-ios-developer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":215476812,"owners_count":15884774,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","awesome","awesome-list","awesome-readme","ios","ios-app","ios-swift","swift","swift5","useful-knowledge","usefull","usefull-materials"],"created_at":"2024-01-05T20:16:41.261Z","updated_at":"2024-08-15T11:30:35.738Z","avatar_url":"https://github.com/jphong1111.png","language":"Swift","funding_links":[],"categories":["Swift","Other Awesome Lists","IOS","Other Lists"],"sub_categories":["Push Notification Providers","Twitter","TeX Lists"],"readme":"# Awesome iOS Developer [![Join the chat at https://gitter.im/awesome-ios-developer/community](https://badges.gitter.im/awesome-ios-developer/community.svg)](https://gitter.im/awesome-ios-developer/community?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)    \n\n\u003cp\u003e\n\n   \n\u003c!-- \n\n\n%%%%%%%%%%%%%%%%%%%%%%%\n%%%%%%UPDATE LIST%%%%%%\n%%%%%%%%%%%%%%%%%%%%%%%\n\ngit useful\nhttps://www.gitkraken.com/ -\u003e similar with git tower\nhttps://www.git-tower.com/mac -\u003e observe filehistory\nhttps://kaleidoscope.app -\u003e diff file manager\n\n\nreduce build time when TDD\nline 1819\n\nadd more description\n\n\nadd more description about router service pattern\n\n\nadd TCA description\n\n\nadd domain pattern(layer) + robot testing in ios\n\n\nadd dependency inversion\n\n+ \n\nadd service locator + dependency container\n\n\nadd description about coordinator pattern\n\n\nadd modular architecture\n\n\nadd description for tuist template\n\n\nadd useful debugging in XCode(Youtube iOS)\n+ need to add more with pic\n\n\nusing fastlane + periphery\n\n\ndependency container\n\n\nAR Kit add\n\nadd book for debugging( ray wenderlich)\n\nadd service locator pattern\n\ncomposition layer\n\n-sil option for optimization build for swift compile\n\nSwiftGen - auto generate string \u0026 asset enum opensource\n\napple developer tutorial video link update\n--\u003e\n\n\u003cp align=\"center\"\u003e\n\u003cimg alt=\"awesome\" src=\"https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg\" /\u003e\n\u003ca href=\"https://hits.seeyoufarm.com\"\u003e\n    \u003cimg src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2Fjphong1111%2FUseful_Swift\u0026count_bg=%2379C83D\u0026title_bg=%23555555\u0026icon=\u0026icon_color=%23E7E7E7\u0026title=hits\u0026edge_flat=true\"/\u003e\n\u003c/a\u003e\n\n\u003c/p\u003e\n\n\n\u003cp align=\"center\"\u003e\n🌟Feel free to contribute this Repository!!🌟\n\u003c/p\u003e\n\n## 🔎 Content\n- [Coding Convention](#Coding-convention)\n    - [Swift Lint](#Swift-lint)\n- [App Life Cycle](#app-life-cycle)\n- [ViewController Life Cycle](#viewcontroller-life-cycle)\n- [Design Pattern](#Design-Pattern)\n    - [Adaptor](#Adaptor)\n    - [Coordinator](#Coordinator)\n    - [Delegation](#Delegation)\n    - [Dependency Injection](#Dependency-Injection)\n    - [Factory](#Factory)\n    - [Observer](#Observer)\n       - [KVO](#KVO)\n       - [KVC](#KVC)\n    - [Singleton](#Singleton)\n- [Code Structuring](#code-structuringarchitecture)\n    - [MVC](#MVC)\n    - [MVP](#MVP)\n    - [MVVM](#MVVM)\n    - [VIPER](#VIPER)\n    - [The Composable Architecture(TCA)](#The-Composable-Architecture)\n       - [Reducer](#Reducer)\n    - [Repository Pattern](#Repository-Pattern)\n- [UIDesign](#UIDesign)\n    - [HIG](#highuman-interface-guidelines)\n    - [SwiftUI](#SwiftUI)\n        - [Useful Cheat Sheet for SwiftUI](#Useful-Cheat-Sheet-for-SwiftUI)\n    - [UIdesign Inspiration](#UIdesign-Inspiration)\n    - [Vector Graphic Editors](#Vector-Graphic-Editors)\n    - [Design Collaboration](#Design-Collaboration)\n    - [Design Tools](#Design-Tools)\n    - [Useful Sites](#useful-sites)\n- [Bundle](#Bundle)\n    - [Static Library](#static-library)\n    - [Dynamic Library](#dynamic-library)\n    - [xcframework](#xcframework)\n- [Screen Layout Programmatically](#screen-layout-programmatically)\n- [Helper](#Helper)\n    - [Email, Message, Call](#email-message-call)\n    - [Network Layer](#Network-Layer)\n    - [Image Picker](#Image-Picker)\n    - [File Manager](#File-Manager)\n    - [Video Downloader](#Video-Downloader)\n    - [Image Downloader](#Image-Downloader)\n    - [Location Manager](#Location-Manager)\n    - [Local Notification Manager](#local-notification-manager)\n- [API](#API)\t\n- [JSON](#JSON)\n    - [JSONDecoder](#JSONDecoder)\n    - [JSONSerialization](#JSONSerialization)\n- [NotificationCenter](#NotificationCenter)\n- [UserDefaults](#UserDefaults)\n    - [How to find documentDirectory](#How-to-find-documentDirectory)\n    - [Store Object](#Store-Object)\n- [Core Data](#Core-Data)\n    - [Core Data Stack](#Core-Data-Stack)\n    - [Set Up Core Data](#Set-Up-Core-Data)\n    - [Core Data Usage](#Core-Data-Usage)\n        - [Codegen](#codegen)\n        - [Entities](#Entities)\n        - [Attributes](#Attributes)\n        - [Relationships](#Relationships)\n        - [Delete Rules](#Delete-Rules)\n    - [Store Data](#Store-Data)\n    - [Load Data](#Load-Data)\n    - [Update Data](#Update-Data)\n    - [Delete Data](#Delete-Data)\n- [Core Bluetooth](#Core-Bluetooth)\n- [Third Party Library](#Third-Party-Library)\n    - [Dependency/Package Manager](#Dependency/Package-Manager)\n        - [CocoaPods](#CocoaPods)\n        - [Carthage](#Carthage)\n        - [Swift Package Manager](#Swift-Package-Manager)\n    - [Recommend Library](#Recommend-Library)\n- [Localization](#Localization)\n    - [Usage](#Localization-Usage)\n    - [Useful for Localization](#Useful-for-Localization)\n- [Accessibility](#Accessibility)\n    - [USage](#Accessibility-Usage)\n- [GCD](#GCD)\n    - [DispatchQueue](#DispatchQueue)\n        - [Thread Safety](#thread-safety)\n    - [DispatchGroup](#DispatchGroup)\n    - [DispatchWorkItem](#DispatchWorkItem)\n- [Operation](#operation)\n    - [OperationQueue](#operationQueue)\n- [Thread Sanitizer](#Thread-Sanitizer)\n- [Testing](#Testing)\n    - [Five Factor Testing](#Five-Factor-Testing)\n    - [Test Double](#Test-Double)\n    - [Useful Debugging Technique](#Useful-Debugging-Technique)\n    - [TDD](#TDD)\n        - [Reduce Build Time](#Reduce-Build-Time)\n            - [Check build time in Xcode](#Check-build-time-in-Xcode)\n    - [BDD](#BDD)\n    - [Code Coverage](#Code-Coverage)\n    - [Integration Testing](#Integration-Testing)\n    - [Unit Testing](#Unit-Testing)\n    - [UI Testing](#UI-Testing)\n        - [Robot Testing](#Robot-Testing)\n    - [Snapshot Testing](#snapshot-testing)\n    - [TestFlight](#testflight)\n- [CI/CD](#cicd)\n    - [Fastlane](#Fastlane)\n    - [Jenkins](#Jenkins)\n    - [Jira](#Jira)\n    - [CircleCI](#CircleCI)\n    - [Codemagic](#Codemagic)\n    - [Xcode Cloud](#xcode-cloud)\n- [Swift DocC](#swift-DocC)\n- [Tuist](#Tuist)\n- [In App Purchase(IAP)](#In-App-PurchaseIAP)\n- [Notification](#Notification)\n    - [Local Notification](#Local-Notification)\n    - [Remote Notification](#Remote-Notification)\n        - [APNs](#APNS)\n            - [Set Up APNs](#Set-Up-APNs)\n            - [APNs Usage](#APNs-Usage)\n- [FRP](#FRP)\n    - [Rxswift](#Rxswift)\n    - [Combine](#Combine)\n    - [RxCombine](#Rxcombine)\n- [Security](#Security)\n    - [Checklist For App Security](#Checklist-For-App-Security)\n    - [Keychain](#Keychain)\n    - [SSL Pinning](#SSL-Pinning)\n    - [Code Obfuscation](#Code-Obfuscation)\n    - [Cryptography](#Cryptography)\n    - [Biometric Access](#Biometric-Access)\n        - [Face ID \u0026 Touch ID](#face-id--touch-id)\n- [Objective-C](#Objective-C)\n    - [Bridging Header](#Bridging-Header)\n- [Error Search](#Error-Search)\n- [Useful Stuff](#Useful-Stuff)\n    - [Useful Blogs for iOS Developers](#Useful-Blogs-for-iOS-Developers)\n    - [How to submit your app to the AppStore](#how-to-submit-your-app-to-the-appstore)\n    - [iOS Version Adoption Tracker](#iOS-version-adoption-tracker)\n    - [Online Swift Playground](#Online-Swift-Playground)\n    - [Show Preview in UIKit(Build UI with Code Base)](#show-preview-in-uikitbuild-ui-with-code-base-----)\n    - [Compare Changes in Swift Version](#Compare-Changes-in-Swift-Version)\n    - [Managing Xcode Space](#Managing-Xcode-Space)\n    - [Roadmap for iOS Developer](#Roadmap-for-iOS-Developer)\n    - [Vim in Xcode](#use-vim-in-xcode)\n    - [Write README.md](#write-readmemd)\n\n\n## Coding convention\nset of guidelines for a specific programming language that recommend programming style\n\n### Swift Style Guide\n\n- [Swift Style Guide](https://github.com/linkedin/swift-style-guide)\n\n### Swift Lint\nThe way of force you to adapt coding convention \n\u003eotherwise project build will **FAILED**\n- [Swift Lint](https://github.com/realm/SwiftLint) apply for all project:+1:\n```swift\nif which swiftlint \u003e/dev/null; then\n  swiftlint\nelse\n  echo \"error: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\n  exit 1\n  fi\n```\nput .yml file into root folder and apply following code in Build Phases\n\n**You can modify(delete) SwiftLint Option with opening .yml file**\n\n\u003e Shift + Command + . will show the hidden file\n\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/swiftLintChange.png\"\u003e\n\n\n📚📚 Recommend Book 📚📚 \n\n| Book Name   | Authors Name |\n| :----------- | :----------- |\n| Clean Code: A Handbook of Agile Software Craftsmanship | Robert C. Martin |\n| The Pragmatic Programmer Your Journey to Mastery, 20th Anniversary Edition| Andrew Hunt David Hurst Thomas |\n\n\n## App Life Cycle\n\n\n[iOS App Life Cycle](https://medium.com/@neroxiao/ios-app-life-cycle-ec1b31cee9dc)\n\n\n\n\n\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n\n\n\n\n\n## ViewController Life Cycle\n\n\u003cimg src = \"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/iOSViewLifeCycle.png\" width=\"70%\" height=\"70%\"/\u003e\n\n\n- viewDidLoad\n- viewWillAppear\n- viewWillLayoutSubviews\n- viewDidLayoutSubviews\n- viewDidAppear\n- viewWillDisappear\n- viewDidDisappear\n\n\n\n[iOS View Controller Life Cycle](https://medium.com/good-morning-swift/ios-view-controller-life-cycle-2a0f02e74ff5)\n\n\n\n\n\n\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n\n\n\n## Design Pattern\n\nCheck [this](https://refactoring.guru/design-patterns/swift) website for design pattern in Swift\n\n## Adaptor\n\nAdapter pattern is a structural design pattern that is useful for composing classes and objects into a larger system.\n\n```swift\nprotocol Target {\n    func request()\n}\n\nclass Adaptee {\n    func specificRequest() {}\n}\n\nclass Adapter: Target {\n    let adaptee: Adaptee\n    \n    init(adaptee: Adaptee) {\n        self.adaptee = adaptee\n    }\n    \n    func request() {\n        adaptee.specificRequest()\n    }\n}\n```\n\n - [‘Adapter’ Pattern in Swift](https://levelup.gitconnected.com/adapter-pattern-in-swift-b6403cfa0a78)\n - [Swift adapter design pattern](https://theswiftdev.com/swift-adapter-design-pattern/)\n - [Adapter in Swift](https://refactoring.guru/design-patterns/adapter/swift/example)\n \n## Coordinator\n\n- [Leverage the Coordinator Design Pattern in Swift 5](https://betterprogramming.pub/leverage-the-coordinator-design-pattern-in-swift-5-cd5bb9e78e12)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## Delegation\n\nDelegation is a design pattern that enables a class to hand off (or “delegate”) some of its responsibilities to an instance of another class.\n\n### Example\n\nCreate a protocol \n\n```swift\nprotocol SomeProtocol: AnyObject {\n    func reload()\n}\n```\n\nCreate a delegate \n```swift\nweak var delegate: SomeProtocol?\n```\n\n\n\nYou can check the code using delegation pattern [here](https://github.com/jphong1111/Unsplash_Clone/blob/main/Unsplah_Clone/Module/MainMenu/AccountScreenModule/ViewModel/AccountViewModel.swift#L35)\n\n- [Delegation in Swift Swift by Sundell](https://www.swiftbysundell.com/articles/delegation-in-swift/)\n- [Delegation in Swift Explained](https://learnappmaking.com/delegation-swift-how-to/)\n- [Delegation Pattern in Swift 5.1](https://medium.com/@nimjea/delegation-pattern-in-swift-4-2-f6aca61f4bf5)\n\n\n\n## Dependency Injection\n\nDependency injection is a pattern that can be used to eliminate the need for singletons in a project\n\n\n 1. Raise Transparency\n 2. Improve Testability\n\n### Type of Dependency Injection\n\n **1. initializer injection**\n \n ``` swift\n class DataManager {\n\n    private let serializer: Serializer\n\n    init(serializer: Serializer) {\n        self.serializer = serializer\n    }\n\n}\n ```\n \n **2. property injection**\n \n ```swift\n import UIKit\n\nclass ViewController: UIViewController {\n\n    var requestManager: RequestManager?\n\n}\n```\n\n **3. method injection**\n \n ```swift\n import Foundation\n\nclass DataManager {\n\n    func serializeRequest(request: Request, withSerializer serializer: Serializer) -\u003e Data? {\n        ...\n    }\n\n}\n```\n \n[Nuts and Bolts of Dependency Injection in Swift](https://cocoacasts.com/nuts-and-bolts-of-dependency-injection-in-swift)\n\n\n## Factory\n\nFactory method is a creational design pattern which solves the problem of creating product objects without specifying their concrete classes.\n\n- [Factory Method in Swift](https://refactoring.guru/design-patterns/factory-method/swift/example)\n- [The Factory Pattern using Swift](https://stevenpcurtis.medium.com/the-factory-pattern-using-swift-b534ae9f983f)\n\n## Observer\n\nObserver is a behavioral design pattern that allows some objects to notify other objects about changes in their state.\n\n - Observer - An object that wishes to be notified when the state of another object changes.\n - Subject (Observable) - An object that maintains a list of observers, and inform them of state changes usually by calling one of their methods. An observable slightly differs in this in that it is just a function that sets up an observation.\n - Subscribe - An observer lets a subject know that it wants to be informed of changes through a process called subscribing.\n \n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/observer.png\" /\u003e\n\nCheck following sites\n - [swiftbysundell](https://www.swiftbysundell.com/articles/observers-in-swift-part-1/) \n\nTBD\n\n### KVO\n\nKVO stands for Key Value Observing\n\n\n - [Apple Developer Site](https://developer.apple.com/documentation/swift/cocoa_design_patterns/using_key-value_observing_in_swift)\n - [KVO (Key Value Observing) in Swift](https://medium.com/@abhishek1nacc/kvo-key-value-observing-in-swift-65d05ac2d240)\n\n\n### KVC\n\n[KVO vs KVC](https://medium.com/hackernoon/kvo-kvc-in-swift-12f77300c387)\n\nWe are using KVC in Storyboard!\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n\n## Singleton\n\nsingleton pattern is to ensure only one instance of a class is alive at any one time.\n\n```swift\nclass SingletonPattern {\n    static let manager = SingletonPattern()\n    \n    private init() {}\n}\n```\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Swift DocC\nSwift-DocC is a documentation compiler for Swift frameworks and packages aimed at making it easy to write and publish great developer documentation.\n\nSimple goes to Product-Build Documentation and DocC will open\n\n- [Swift DocC Apple Github](https://github.com/apple/swift-docc)\n- [DocC Tutorial for Swift : Getting Started](https://www.kodeco.com/34919511-docc-tutorial-for-swift-getting-started)\n\n## Code Structuring(Architecture)\n\n📚📚 Recommend Book 📚📚 \n\n| Book Name   | Authors Name |\n| :----------- | :----------- |\n| Advanced iOS App Architecture : Real-world app architecture in Swift | raywenderlich Tutorial Team |\n| Clean Architecture: A Craftsman's Guide to Software Structure and Design | Robert Martin |\n\n## Clean Architecture\n\n\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Clean_Architecture.png\"\u003e\n\n\n[Clean Architecture](https://blog.cleancoder.com/uncle-bob/2012/08/13/the-clean-architecture.html)\n\n\n## MVC\n\nMVC pattern stands for Model - View - Controller\n\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/MVCModel.png\"\u003e\n\n - Model - Model take care of storing data.\n - View - View renders the data for users\n - Controller - Controller modifies the View, accepts user input and interacts directly with the Model. And take care of view logic and business logic.\n\n## MVP\n\n\u003cimg src =\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/MVPdesign.png\" /\u003e\n\n## MVVM\n\nMVVM patterns stand for Model - View - ViewModel\n\n### MVC vs MVVM\n\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/MVVMvsMVC.png\" width = \"60%\" height = \"60%\"\u003e\n\n - Model – Which holds the application data\n\n - View – It displays the data that is stored in model. These are visual elements through which a user interacts. These are subclasses of UIView\n\n - View Model – Transform model information/data and it interacts with controller or view to display those informations.\n\n - Controller class – It will be there but the responsibility of view business logic has been removed and give to view model\n\n\u003e You can check App example of using MVVM [here](https://github.com/jphong1111/Unsplash_Clone)\n\n## VIPER\n\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Viper.png\"\u003e\n\n - View - Displays what it is told to by the Presenter and relays user input back to the Presenter.\n - Interactor -  Contains the business logic as specified by a use case.\n - Presenter - contains view logic for preparing content for display (as received from the Interactor) and for reacting to user inputs (by requesting new data from the Interactor).\n - Entity - contains basic model objects used by the Interactor.\n - Routing - contains navigation logic for describing which screens are shown in which order.\n \n[Getting Started with the VIPER Architecture Pattern](https://www.raywenderlich.com/8440907-getting-started-with-the-viper-architecture-pattern)\n \n # The Composable Architecture\n \nThe Composable Architecture is a library for building applications in a consistent and understandable way, with composition, testing, and ergonomics in mind\n \n \u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/SCA.png\"\u003e\n \n  - [Composable Architecture @ Point Free](https://www.pointfree.co/collections/composable-architecture)\n  - [The Composable Architecture GitHub](https://github.com/pointfreeco/swift-composable-architecture)\n  - [The Composable Architecture — One of the Best-Suited Architectures for SwiftUI](https://medium.com/swlh/the-composable-architecture-one-of-the-best-suited-architectures-for-swiftui-35bfc5102b83)\n  \n ```swift\n // example will update here\n ```\n \n ## Reducer\n \n A reducer describes how to evolve the current state of an application to the next state, given an action, and describes what Effects should be executed later by the store, if any.\n \n - [Reducer in TCA](https://pointfreeco.github.io/swift-composable-architecture/Reducer/)\n\n \n \n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n \n## Repository Pattern\n\n\n[The Repository and Unit of Work Patterns](https://docs.microsoft.com/en-us/aspnet/mvc/overview/older-versions/getting-started-with-ef-5-using-mvc-4/implementing-the-repository-and-unit-of-work-patterns-in-an-asp-net-mvc-application)\n\n\n\n\n\n\n\n\n\n\n\n \n## UIDesign\n\n## HIG(Human Interface Guidelines)\n- [HIG](https://developer.apple.com/design/human-interface-guidelines/)\n- [Apple UI Kit](https://developer.apple.com/documentation/uikit)\n- [iOS Design Guide](https://ivomynttinen.com/blog/ios-design-guidelines)\n\n## SwiftUI\n\nSwiftUI is a user interface toolkit that lets us design apps in a **declarative way(Declarative syntax)**. \n\n\n## Useful Cheat Sheet for SwiftUI\n\n - [Fucking SwiftUI](https://fuckingswiftui.com/) Cheat Sheet for SwiftUI\n - [Gosh Darn SwiftUI](https://goshdarnswiftui.com/) Cheat Sheet for SwiftUI\n - [SimpleBoilerplates/SwiftUI-Cheat-Sheet](https://github.com/SimpleBoilerplates/SwiftUI-Cheat-Sheet)\n \nTBA\n\n\n\n\n\n\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## iOS icon \n- [SF Symbols](https://developer.apple.com/sf-symbols/) Download SF Symbols2 for more icons!\n- [icon8](https://icons8.com/) You can download icons imge for your **APP**\n- [appicon](https://appicon.co/) generate the app icon size\n- [flaticon](www.flaticon.com) Free icons download\n\n\n## UIdesign Inspiration\n\n- [Dribble](https://dribbble.com/)\n- [Pinterest](https://pinterest.com/)\n- [Behance](https://www.behance.net/)\n- [Pttrns](https://pttrns.com/)👍\n- [Awwwards](https://www.awwwards.com/)\n- [Flickr](http://www.flickr.com/)\n- [Mobbin](https://mobbin.design/dictionary)👍\n\n## Vector Graphic Editors\n- [Figma](https://www.figma.com/)\n- [Sketch](https://www.sketch.com/)\n- [Adobe XD](https://www.adobe.com/products/xd.html)\n\n## Design Collaboration Tools\n- [Sympli](https://sympli.io/)\n- [Zepline](https://zeplin.io/)\n\n## Design Tools\n- [DetailsPro](https://detailspro.app) You can design with SwiftUI free 👍\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n\n## Useful Sites \n\n - [HEX Color Picker](https://imagecolorpicker.com/) Good for picking color as Hex 👍\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Screen Layout Programmatically\n\n\nTBA\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n# Bundle\n\nYou can use [Bundle+Extension.swift](https://github.com/jphong1111/awesome-ios-developer/blob/main/Bundle%2BExtension.swift) file to configure your bundle to your application. \n\u003e Source code from : [PhoneNumberKit](https://github.com/marmelroy/PhoneNumberKit)\n\n- [Bundles and Packages](https://nshipster.com/bundles-and-packages/)\n\n## Static Library\n\n## Dynamic Library\n\n## xcframework\n\nXCFrameworks is a distributable binary package created by Xcode that contains variants of a framework or library so that it can be used on multiple platforms (iOS, macOS, tvOS, and watchOS), including Simulator builds\n\n\n[Creating a multiplatform binary framework bundle](https://developer.apple.com/documentation/xcode/creating-a-multi-platform-binary-framework-bundle)\n\n\n\n\n\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n\n\n## Helper\n\nAll files are resuable files and protocol oriented. **Just Copy and Paste inside your project and use it!!** 👍\n \n**These helper files are not with Error Handling! careful at use**\n\n## Email, Message, Call\n\nYou can check the file in the follow link\n\n- [Email, Message, Call](https://github.com/jphong1111/Useful_Swift/blob/main/Helper/ConversationHandler/ConversationManager.swift)\n\n### Usage\nimport MessageUI first\n\n```swift\nimport MessageUI\n```\n\nThen use it\n\u003e Don't forget to extend the mail, message delegate to your ViewController!\n\n```swift\n    lazy var conversation = ConversationManager(presentingController: self, mailDelegate: self, messageDelegate: self, viewController: self)\n    \n    @IBAction private func sendEmail(_ sender: UIButton) {\n        conversation.sendEmail(feedback: MailFeedback(recipients: [\"abcd@google.com\"], subject: \"FeedBack\", body: \"Write feedback here\"))\n    }\n    @IBAction private func sendMessage(_ sender: UIButton) {\n        conversation.sendMessage(feedback: MessageFeedBack(recipients: [\"1111111111\"], body: \"Type here\"))\n    }\n    @IBAction private func startCall(_ sender: UIButton) {\n        conversation.makeCall(number: \"1111111111\")\n    }\n```\n\nGood To GO 👏👏👏\n\u003e See Example [here](https://github.com/jphong1111/ImageMessageHandler_DemoApp)\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Network Layer\n\n- [Network Layer](https://github.com/jphong1111/Useful_Swift/tree/main/Helper/Network%20Layer) \n\n### Usage\n\nFirst, set the base URL in **EndPointType file**\n\u003e Don't forget to put your API key in it!\n\n```swift\nvar baseURL: URL {\n        guard let url = URL(string: \"https://api.openweathermap.org/data/2.5/\") else {\n            fatalError(\"baseURL could not be configured.\")\n        }\n        return url\n    }\n```\n\nthen make a instance of router.swift file in your code\n\n```swift\nprivate let router = Router\u003cYourAPI\u003e()\n```\n\nfor **YourAPI part**, simply create a new **enum** with cases about specific api URL\n\u003e It will make your router more dynamic!\n\u003e Don't forget extension to EndPointType!\n\n```swift\nenum YourAPI {\n    case first(country: String)\n    case second(time: Int)\n    case third(name: String)\n}\n\nextension YourAPI: EndPointType {\n    var path: String {\n        switch self {\n        case .first(let country):\n            return \"\\(country).json\"\n        case .second(let time):\n            return \"\\(time).json\"\n        case .third(let name):\n            return \"\\(name).json\"\n        }\n    }\n}\n```\n\nthen, use it like this\n\n```swift\nrouter.request(.first(country: London)) { [weak self] (results: Result\u003cCountryWeather, AppError\u003e) in\n            guard let self = self else { return }\n            switch results {\n            case .success(let data):\n                // insert your modifications!\n                \n            case .failure(let error):\n                // insert your modifications!\n                print(error)\n            }\n        }\n```\n\n\u003e **CountryWeather should be a model with Decodable**\n\nIf you want to see how can I use Network Layer in Project, check [this](https://github.com/jphong1111/Unsplash_Clone/tree/main/Unsplah_Clone/ReusableComponent/NetworkLayer)\n\nThis reusable network layer files for referenced from [here](https://medium.com/flawless-app-stories/writing-network-layer-in-swift-protocol-oriented-approach-4fa40ef1f908)\n\n\u003e Also [Alamofire](https://github.com/Alamofire/Alamofire) will be a great option for Network Layer!\n\n## Image Picker\n\n- [Image Picker](https://github.com/jphong1111/Useful_Swift/blob/main/Helper/ImagePickerHandler/ImagePicker.swift) \n\n### Usage\n\nCopy and Paste in your project and then declare Image Picker object inside your project \n\n```swift\nlazy var imagePicker = ImagePicker(presentationController: self, delegate: self)\n```\n\nThen, extend ImagePickerDelegate to your viewController\n\n```swift\nextension ViewController: ImagePickerDelegate {\n    func didSelect(image: UIImage?) {\n        self.yourImageView.image = image\n        self.dismiss(animated: true, completion: nil)\n    }\n}\n```\n\nGood To GO 👏👏👏\n\u003e See Example [here](https://github.com/jphong1111/ImageMessageHandler_DemoApp)\n\n\n## File Manager\n\n- [File Manager](https://github.com/jphong1111/awesome-ios-developer/blob/main/Helper/FileManageHandler/FileManager.swift) \n\n### Usage\n\nCopy and Paste in your project \n\n```swift\nlet readData = FileManageHelper.manager.readFile(filename: fileNameTextField.text ?? \"\", type: extensionTextField.text ?? \"\")\nresultTextField.text = readData\n```\n\u003e File Manager are wrote with singleton pattern, therefore no need to declare in side your code!\n\nGood To GO 👏👏👏\n\n## Video Downloader\n\n- [Video Downloader](https://github.com/jphong1111/awesome-ios-developer/blob/main/Helper/VideoDownloadHandler/VideoDownloadManager.swift) \n\n## Usage\n\nMake an object of VideoManager inside your code\n\n```swift\nlet videoManager = VideoManager()\n```\n\nuse downloadVideoLinkAndCreateAsset function to start download with entering URL\n\n```swift\nself.videoManager.downloadVideoLinkAndCreateAsset(text)\n```\nGood To GO 👏👏👏\n\n## Image Downloader\n\nThere is no file for Image Downloader.\n\nTo download images into device, only thing is this\n\n```swift\nif let data = try? Data(contentsOf: urls),\n   let image = UIImage(data: data) {\n   UIImageWriteToSavedPhotosAlbum(image, nil, nilil)\n}\n```\nJust **change urls into your image URL**\n\n\u003e UIImageWriteToSavedPhotosAlbum will take care it to download to device.\n\n\u003e For more info go [here](https://www.hackingwithswift.com/example-code/media/uiimagewritetosavedphotosalbum-how-to-write-to-the-ios-photo-album)\n\nGood To GO 👏👏👏\n\n## Location Manager\n\n- ~~[Location Manager](https://github.com/jphong1111/Useful_Swift/tree/main/Helper/LocationHandler/LocationManager.swift)~~\n\nCurrently Working\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Local Notification Manager\n\n - [Local Notification Manager](https://github.com/jphong1111/awesome-ios-developer/blob/main/Helper/LocalNotificationHelper/LocalNotificationManager.swift)\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n# API\n\nAPI(Application Programming Interface) is an interface that defines interactions between multiple software applications or mixed hardware-software intermediaries. It defines the kinds of calls or requests that can be made, how to make them, the data formats that should be used, the conventions to follow, etc.\n\n## Various API Site\n- [rapidAPI](https://www.rapidapi.com)\n- [AnyAPI](https://any-api.com/)\n- [Programmableweb](https://www.programmableweb.com/)\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n\n## JSON\nJSON is a language-independent data format\n\u003e Which is relative with **KEY - VALUE** pair\n```json\n{\n    \"main\": [\n        {\n            \"title\": \"example1\",\n            \"body\": \"body1\"\n        },\n        {\n            \"title\": \"example2\",\n            \"body: \"body2\"\n        }\n    ]\n}\n```\n### JSON parser extension for Chrome\nThis extension makes JSON more structable\n[JSON parser pro](https://chrome.google.com/webstore/detail/json-viewer-pro/eifflpmocdbdmepbjaopkkhbfmdgijcc) **FREE** :+1:\n\n## JSONDecoder\n\nTo use JSONDecoder in swift, you have to define the model to be Codable or Decodable\n\n```swift\npublic typealias Codable = Decodable \u0026 Encodable\n```\n\n\u003e Decodable can only decode the json data. Can't encoded json file!!\n\n```swift\nstruct User: Codable {\n    var firstName: String\n    var lastName: String\n    var country: String\n    \n    enum CodingKeys: String, CodingKey {\n        case firstName = \"first_name\"\n        case lastName = \"last_name\"\n        case country\n    }\n}\n\n```\n\u003e To avoid snake_case in swift, use CodingKeys or JSONDecoder.KeyDecodingStrategy\n\nTo use JSONDecoding, declare JSONDecoder and use decode() function\n\n```swift\n do {\n    let data = try JSONDecoder().decode(T.self, from: unwrappedData)\n    completionOnMain(.success(data))\n} catch {\n    print(error)\n    completionOnMain(.failure(.parseError))\n}\n ```\n \nT.self -\u003e Model(Struct) of the data that you want to decode\n \u003e data will decoded to form of T\n\nunwrappedData -\u003e Input actual data from file or server\n\u003e This should be a Data Type!!\n \n## JSONSerialization\n\nJSONSerialization is a old way of decode the JSON file.\n\u003e Apple populated Codable since Swift 4\n\n### Example\n\nExample of number.json data\n\n```json\n{\n    \"number\": [\n        {\n            \"name\": \"Dennis\",\n            \"number\": \"111-222-3333\"\n        },\n        {\n            \"name\": \"Jenny\",\n            \"number\": \"444-555-6666\"\n        },\n        {\n            \"name\": \"Ben\",\n            \"number\": \"777-888-9999\"\n        }\n    ]\n}\n\n```\n\nHere is a example of JSONSerialization with actaul JSON file in project folder\n\u003e Otherwise you can use URL!\n\n```swift\n    private func populateDataFromJson() {\n        \n        if let path = Bundle.main.path(forResource: \"NumberData\", ofType: \"json\") {\n            do {\n                let dataJson = try Data(contentsOf: URL(fileURLWithPath: path))\n                let jsonDict = try JSONSerialization.jsonObject(with: dataJson, options: .mutableContainers)\n                if let jsonResults = jsonDict as? [String: Any],\n                   let results = jsonResults[\"number\"] as? [[String: Any]] {\n                    results.forEach { dict in\n                        // simply appended to list(array)\n                        self.phoneNumberList.append(PhoneNumber(name: dict[\"name\"] as? String ?? \"\", number: (dict[\"number\"] as? String ?? \"\")))\n                        self.phoneNumberListClone.append(PhoneNumber(name: dict[\"name\"] as? String ?? \"\", number: (dict[\"number\"] as? String ?? \"\")))\n                    }\n                }\n            } catch {\n                print(error.localizedDescription)\n            }\n        }\n    }\n```\n\n\u003e .mutableContainers allows to working like a array and dictionary type\n\n\n### JSON Parser Library\n\nThis library provide JSON parsing \n\n- [SwifyJSON](https://github.com/SwiftyJSON/SwiftyJSON)\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## NotificationCenter\n\nA notification dispatch mechanism that enables the broadcast of information to registered observers.\n\n - [NotificationCenter Apple Document](https://developer.apple.com/documentation/foundation/notificationcenter)\n - [How To: Using Notification Center In Swift](https://learnappmaking.com/notification-center-how-to-swift/)\n\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## UserDefaults\n\nThe UserDefaults class provides a programmatic interface for interacting with the defaults system. Check [Apple Document](https://developer.apple.com/documentation/foundation/userdefaults) for more info\n\u003e UserDefaults has to have **key-value** pair\n\n### When do we use UserDafaults\n\n- User information, like name, email address, age, occupation\n- App settings, like user interface language, app color theme or “detailed vs. simple UI”\n- Flags, more on this later\n- If store data is small \n\n## How to find documentDirectory \n\nPut this line of code inside of your project\n```swift\nfunc application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -\u003e Bool {\n        print(NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).last ?? \"\")\n        return true\n    }\n```\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/DocumentPath.png\" /\u003e\n\nsimply move into that path and you can find the documentDirectory of your Application\n\u003e if Library is not shown up, just do **Shift + Command + .** to show hidden files in your folder\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/UserDefaultPlistPath.png\" /\u003e\n\n## Usage\n\nAs you can see in the below, intArray will stored inside the device through UserDefaults(), so that if device is shut down, changed value wil be stored in device.\n\n```swift\nclass ViewController: UIViewController {\n    var intArray = [1,2,3,4,5]\n    let defaults = UserDefaults()\n    \n    override func viewDidLoad() {\n        super.viewDidLoad()\n        intArray = defaults.array(forKey: \"IntArray\") as! [Int]\n    }\n    \n    @IBOutlet weak var textField: UILabel!\n    @IBAction private func isClicked(_ sender: UIButton) {\n        intArray.append(6)\n        defaults.set(intArray, forKey: \"IntArray\")\n        textField.text = \"\\(intArray)\"\n    }\n}\n```\nYou can your plist file like this!\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/UserDefaultPlist.png\" /\u003e\n\nDeclare Userdefault like this!\n\n```swift\nlet defaults = UserDefaults.standard\n```\n\u003e **standard** allows to access from anywhere inside device\n\n**With using set function, you can set userdefaults**\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/UserDefaultSet.png\" width = \"60%\" height = \"60%\"/\u003e\n\n**Also these function will allow to get a data from plist**\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/UserDefaultGet.png\" width = \"60%\" height = \"60%\"/\u003e\n\n## Store Object\n\n[Store Object](https://stackoverflow.com/questions/29986957/save-custom-objects-into-nsuserdefaults)\n\n\n**You are GOOD TO GO**  👏👏👏\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n# Core Data\n\n[Everything Core Data](https://metova.com/everything-core-data/)\n\nUse Core Data to save your application’s permanent data for offline use, to cache temporary data, and to add undo functionality to your app on a single device.\n\n**Core Data in Swift is using SQLite as DEFAULT**\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/DataStoreInSwift.png\" width = \"50%\" height = \"50%\"/\u003e\n\n\u003e Image From London App Brewery\n\n\n📚📚 Recommend Book 📚📚 \n\n| Book Name   | Authors Name |\n| :----------- | :----------- |\n| Core Data by Tutorials: iOS 12 and Swift 4.2 Edition | raywenderlich Tutorial Team |\n\n## Core Data Stack\n\n - [The Core Data Stack](https://www.raywenderlich.com/books/core-data-by-tutorials/v7.0/chapters/3-the-core-data-stack)\n \n\u003cimg src = \"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/Core_Data_Stack.png\" width = \"70%\" height = \"70%\"/\u003e\n\n\n - **NSManagedObject** - This is a base class of all the core data model object. This provides the schema of our database table. This is used to store model data in our application. KVO and KVC compliant. It can notify any changes that are done on its properties if any object is listening.\n\n\n - **NSManagedObjectContext** - Most important class. This is the place where you do all the computations. You can think this as a scratch pad where you do all the operations realated to core data (CRUD). It's an object which you can use to manipulate and track any changes done to manage object. All the changes done on a context object will be held until and unless you are discarding or writing those changes permaneently to persistntent storage.\n\n\n - **NSPersistentStoreCoordinator** - The main functionality is to provide a communication between context and persistent store.\n\n\n - NSPersistentStore - They are the stores in which the data are being saved. These includes SQLite, In-Memory, Binary, XML(the XML store is not available on iOS).\n - NSPersistentContainer - This contains the whole core data stacks.\n\n\n\n\n\n\n\n\n\n## Set Up Core Data\n\nSimply Click Core Data check box when you create a new project\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/AddCoreData.png\" width = \"50%\" height = \"50%\"/\u003e\n\nIf you want to attach Core Data in exsiting project\n\nCreate **Data Model** file first\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/AddDataModel.png\" width = \"50%\" height = \"50%\"/\u003e\n\nThen import CoreData inside your **AppDelegate.swift** file\n\n```swift\nimport CoreData\n```\n\nAnd Copy and Paste this lines of code inside your **AppDelegate.swift** file\n\n```swift\n    // MARK: - Core Data stack\n\n    lazy var persistentContainer: NSPersistentContainer = {\n        /*\n         The persistent container for the application. This implementation\n         creates and returns a container, having loaded the store for the\n         application to it. This property is optional since there are legitimate\n         error conditions that could cause the creation of the store to fail.\n        */\n        let container = NSPersistentContainer(name: \"Your DataModel file name\")\n        container.loadPersistentStores(completionHandler: { (storeDescription, error) in\n            if let error = error as NSError? {\n                // Replace this implementation with code to handle the error appropriately.\n                // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.\n                 \n                /*\n                 Typical reasons for an error here include:\n                 * The parent directory does not exist, cannot be created, or disallows writing.\n                 * The persistent store is not accessible, due to permissions or data protection when the device is locked.\n                 * The device is out of space.\n                 * The store could not be migrated to the current model version.\n                 Check the error message to determine what the actual problem was.\n                 */\n                fatalError(\"Unresolved error \\(error), \\(error.userInfo)\")\n            }\n        })\n        return container\n    }()\n\n    // MARK: - Core Data Saving support\n\n    func saveContext () {\n        let context = persistentContainer.viewContext\n        if context.hasChanges {\n            do {\n                try context.save()\n            } catch {\n                // Replace this implementation with code to handle the error appropriately.\n                // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.\n                let nserror = error as NSError\n                fatalError(\"Unresolved error \\(nserror), \\(nserror.userInfo)\")\n            }\n        }\n    }\n```\n\nDon't forget to change it\n```swift\nlet container = NSPersistentContainer(name: \"Your DataModel file name\")\n```\n\nAnd goto **SceneDelegate.swift** file, copy below lines of code and replace yours\n\n```swift\nfunc sceneDidEnterBackground(_ scene: UIScene) {\n        // Called as the scene transitions from the foreground to the background.\n        // Use this method to save data, release shared resources, and store enough scene-specific state information\n        // to restore the scene back to its current state.\n\n        // Save changes in the application's managed object context when the application transitions to the background.\n        (UIApplication.shared.delegate as? AppDelegate)?.saveContext()\n    }\n```\n\nIf your target is **below iOS13**, put this line of code in side your **applicationWillTerminate** of **AppDelegate.swift** file\n\n```swift\nself.saveContext()\n```\n\n## Core Data Usage\n\n\nOnce you create your DataModel file, you can simply create a **Entity(Class)** and **Attributes(Properties)**\n\nAnd then, change the type of attributes in inspector like this\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/DataModelAttribute_inspector.png\"/\u003e\n\nOnce you create your own Entities \u0026 Attributes, go to Inspector and change Module to **CurrentProductModule**\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/DataModelAttributes.png\"/\u003e\n\n\u003e If you didn't set it, thats fine, but if you are working in big project, then you need to set it. Otherwise this can occurs some error.\n\n## Codegen\n\nAs you can see in above, there are three options\n\n- Manual/None - Swift didn't generate CoreDataClass, CoreDataProperties files so that you have to create yourself **(full control)**\n- Class Definition - Swift will generate CoreDataClass, CoreDataProperties files. **(No control)**\n- Category/Extension - Swift will generate only Extension file **(Some Control)**\n\nCoreDataClass, CoreDataProperties are located in below\n\n \u003e /Users/dennis/Library/Developer/Xcode/DerivedData/CoreDataUserDefaultPractice-hisefjfyuvglrjekndpftwazftug/Build/Intermediates.noindex/CoreDataUserDefaultPractice.build/Debug-iphonesimulator/CoreDataUserDefaultPractice.build/DerivedSources/CoreDataGenerated/CoreDataUserDefaultPractice \n\nAnd CoreDataClass, CoreDataProperties are looking like this,\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/CoreDataClass_Properties.png\"/\u003e\n\n\u003e If your code can run it but didn't get your Entities, **Rebuild it or Restart your Xcode**\n\n**The reason that files divided into two files is that one for writing Business Logic, one for Properties**\n \n## Entities\n\nAn entity represents a table in your database. It is the blueprint for the NSManagedObject subclass instances that you will create and use throughout your application.\n\n## Attributes\n\nAttributes are properties of your object. They translate to a column in your database table and a property in your managed object. You can choose from a variety of primitive values that the database has to offer such as a string, integer, or date.\n\n## Relationships\n\nA relationship describes how one entity relates to another. Two important aspects of this are the cardinality and the deletion rule\n\n### Cardinality\n\n - **One-to-many** - Lets say that each Department has a group of Employees that can only work for a single Department. This would be a “one-to-many” relationship since each Department could have many Employees and each Employee can only work for one Department.\n - **Many-to-many** - If a single Employee could work for multiple Departments, then our Department/Employee relationship would be “many-to-many” because each Department could have many Employees and each Employee could work for multiple Departments.\n \n \n### Delete Rules\n\n[Core Data Relationships and Delete Rules](https://cocoacasts.com/core-data-relationships-and-delete-rules)\n\n - **No Action** - Do nothing to the object at the destination of the relationship. For example, if you delete a department, leave all the employees as they are, even if they still believe they belong to that department.\n - **Nullify (Default)** - Set the inverse relationship for objects at the destination to null. For example, if you delete a department, set the department for all the current members to null. This only makes sense if the department relationship for an employee is optional, or if you ensure that you set a new department for each of the employees before the next save operation.\n - **Cascade** - Delete the objects at the destination of the relationship. For example, if you delete a department, fire all the employees in that department at the same time.\n - **Deny** - If there is at least one object at the relationship destination, then the source object cannot be deleted. For example, if you want to remove a department, you must ensure that all the employees in that department are first transferred elsewhere (or fired!) otherwise the department cannot be deleted.\n\n\n\n## Store Data\n\nDeclare context as a global variable\n\n```swift\nlet context = (UIApplication.shared.delegate as! AppDelegate).persistentContainer.viewContext\n```\n\u003e Get viewContext that we defined in AppDelegate.swift file\n\nSimply you can use this code to save your data to CoreData\n```swift\nfunc saveItem() {\n        do {\n            try context.save()\n        } catch {\n            print(\"Error Saving Context: \\(error.localizedDescription)\")\n        }\n    }\n```\n\u003e Use it wherever you want\n\nData can be find if you print the path\n\n```swift\nprint(FileManager.default.urls(for: .documentDirectory, in: .userDomainMask))\n```\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/CoreDataSQLite.png\" /\u003e\n\n\u003e You can check Entities, Properties inside that file\n\n## Load Data\n\nRefer this code and apply it to your code wherever you want to reload it\n```swift\n    func loadItem() {\n        let request: NSFetchRequest\u003cItem\u003e = Item.fetchRequest()\n        do {\n            itemArray = try context.fetch(request)\n        } catch {\n            print(\"Load Item Error: \\(error.localizedDescription)\")\n        }\n    }\n```\n\u003e Item will be your Entity, itemArray will be your Entity object\n\u003e Don't forget to import **CoreData**\n\n## Update Data\n\nSimply use setValue function so that you can update your value in DB\n\n```swift\nitemArray[0].setValue(\u003c#T##value: Any?##Any?#\u003e, forKey: \u003c#T##String#\u003e)\n```\n\u003e if you are using TableView or CollectionView, change 0 to indexPath.row\n\n## Delete Data\n\nSimply use delete function in context\n\n```swift\ncontext.delete(itemArray[0])\n```\n\u003e change number for dynamic!\n\n**You are GOOD TO GO**  👏👏👏\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Core Bluetooth\n\n\n\n\n\n\n\n\n\n\n\n\n\n - [Introduction to BLE Mobile Development [iOS]](https://www.novelbits.io/intro-ble-mobile-development-ios/)\n - [Core Bluetooth Tutorial for iOS: Heart Rate Monitor](https://www.raywenderlich.com/231-core-bluetooth-tutorial-for-ios-heart-rate-monitor)\n - [Getting Started with Core Bluetooth](https://ditto.live/blog/posts/getting-started-with-core-bluetooth)\n\n\n**You are GOOD TO GO**  👏👏👏\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n# Third Party Library\n\nThird Party Library saves you time as you do not need to develop the functionality that the library provides. \n[SHOULD DEVELOPERS USE THIRD-PARTY LIBRARIES?](https://www.scalablepath.com/blog/third-party-libraries/)\n\u003e Relying on library(abused) is not a good idea\n\n - [awesome ios github](https://github.com/vsouza/awesome-ios) Contains all the popular libraries in Swift:+1:\n - [awesome swift site](https://swift.libhunt.com/) You can broswe popular libraries related to iOS\n - [Explore Swift](https://kandi.openweaver.com/explore/swift) Discover \u0026 find a curated list of popular \u0026 new libraries, top authors and trending discussions on kandi.\n\n\n## Dependency/Package Manager\n\nA package manager is a tool that simplifies the process of working with code from multiple sources.\n\n- Centralised hosting of packages and source code with public server with access to developers or contributors\n- Download the source code at the run time, so that we don’t need to include it in the repository\n- Link the source code to our working repository by including source files\n\n[More Info](https://medium.com/xcblog/swift-dependency-management-for-ios-3bcfc4771ec0)\n\n## CocoaPods\n\nDownload cocoapods\n\n```bash\n$ sudo gem install cocoapods\n```\n\nAfter finish download cocoapods, go to your root folder of your project and make pod file\n\n```bash\n$ pod init\n```\n\nClick into your pod file and edit\n\nImage\n\nAfter finish editing, update your pod file\n\n```bash\n$ pod install\n```\n    \n\n**You are GOOD TO GO**  👏👏👏\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Carthage\n\n - [Getting started with Carthage to manage dependencies in Swift and iOS](https://www.twilio.com/blog/2016/05/getting-started-with-carthage-to-manage-dependencies-in-swift-and-ios.html)\n - [Carthage Tutorial: Getting Started](https://www.raywenderlich.com/7649117-carthage-tutorial-getting-started)\n - [Carthage](https://github.com/Carthage/Carthage)\n \nFirst, install Carthage through HomeBrew\n\n```bash\n$ brew install carthage\n```\n\nif already installed, check if there is latest version.\n    \n```bash\n$ carthage update\n```\n\nThen, go to your root project folder, and do this\n\n```bash\ntouch Cartfile\n```\n\nopen cartfile, put library that you want to use\n\n```bash\ngithub \"\u003cowner\u003e/\u003crepo\u003e\" == \u003cversion\u003e\n```\n\nExample \n\n```bash\ngithub \"Alamofire/Alamofire\" == 4.9.0\ngithub \"Alamofire/AlamofireImage\" ~\u003e 3.4\n```\n\nAnd then, do this\n\n```bash\ncarthage update --platform iOS\n```\n\nAfter finish downloading it, go to **Xcode -\u003e Build phases**\n\nTBD\n\n**You are GOOD TO GO**  👏👏👏\n    \n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Swift Package Manager\n\n\u003cimg src = \"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/SwiftPackageManager.png\" width = \"50%\" height = \"50%\"/\u003e\n\nEnter url of library that you want to install\n\n\u003cimg src = \"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/SwiftPackageManager2.png\" width = \"50%\" height = \"50%\"/\u003e\n\n\u003cimg src = \"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/SwiftPackageManager3.png\" width = \"50%\" height = \"50%\"/\u003e\n\n**You are GOOD TO GO**  👏👏👏\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Recommend Library\n- SDWebImage - Downloading and caching images from the web\n- Kingfisher - Downloading and caching images from the web\n- Hero - Various kind of animation with using Segue\n- Alamofire - Network Layer tool\n- Moya - Network abstraction layer written in Swift\n- RxSwift - Reactive Programming in Swift\n- SwiftyJSON - JSON parsar Helper\n- IQKeyboardManager - Easy to manage Keyboard settings\n- SnapKit - Swift Auto Layout DSL for iOS\n- Charts - Make Beutiful Charts in your App\n- Quick/Nimble - Testing Library + Asynchronous tests purpose\n- Periphery - A tool to identify unused code in Swift Projects\n- ReactorKit - A framework for a reactive and unidirectional Swift application architecture\n- SwiftGen - SwiftGen is a tool to automatically generate Swift code for resources of your projects (like images etc), to make them type-safe to use. \n- etc...\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Localization\n\nLocalization is the process of making your app support other languages. (Base language is English)\n\n - [Localization Apple](https://developer.apple.com/localization/)\n - [Localization Apple Developer](https://developer.apple.com/documentation/xcode/localization)\n - [iOS Localization Tutorial](https://medium.com/lean-localization/ios-localization-tutorial-938231f9f881)\n - [Internationalizing Your iOS App: Getting Started](https://www.raywenderlich.com/250-internationalizing-your-ios-app-getting-started)\n \n## Localization Usage\n\nFirst, you have to check **Use Base Internationalization**\n\u003e It might be checked\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Internationalization.png\" width=\"70%\" height =\"70%\" /\u003e\n\n\u003e English is a base Language\n\nAfter you check it, add languages that you want to support in your App\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Internationalization2.png\" width=\"70%\" height =\"70%\" /\u003e\n\nThen, you can check your language file like this!\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Internationalization3.png\" width=\"70%\" height =\"70%\" /\u003e\n\nCreate **Localizable.strings** file into your project\n\u003e Unlike Swift, the .strings file requires that each line terminate with a **semicolon**\n\u003e .strings file is where you can add translation data as **key-value** pairs\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Internationalization4.png\" width=\"70%\" height =\"70%\" /\u003e\n\nIn your .strings file, check localization button and choose language\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Internationalization5.png\" /\u003e\n\nAnd then add Key - Value pairs for tanslation\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Internationalization6.png\" width=\"70%\" height =\"70%\"/\u003e\n\nTo use localization, use **NSLocalizedString** to implement it\n\n```swift\nNSLocalizedString(\u003c#T##key: String##String#\u003e, comment: \u003c#T##String#\u003e)\n```\n - [key] - put (key - value) pair that you created in .strings file\n - [comment] - It will help your translators significantly and result in better translations\n\nSimple example below\n\n```swift\n@IBAction func showAlert() {\n        let alertTitle = NSLocalizedString(\"Welcome\", comment: \"\")\n        let alertMessage = NSLocalizedString(\"How are you\", comment: \"\")\n        let cancelButtonText = NSLocalizedString(\"Cancel\", comment: \"\")\n        let signupButtonText = NSLocalizedString(\"Signup\", comment: \"\")\n\n        let alert = UIAlertController(title: alertTitle, message: alertMessage, preferredStyle: UIAlertController.Style.alert)\n        let cancelAction = UIAlertAction(title: cancelButtonText, style: UIAlertAction.Style.cancel, handler: nil)\n        let signupAction = UIAlertAction(title: signupButtonText, style: UIAlertAction.Style.default, handler: nil)\n        alert.addAction(cancelAction)\n        alert.addAction(signupAction)\n        present(alert, animated: true, completion: nil)\n    }\n```\n \n After that, we have to test if localization is working correctly or not\n \n To test it, you can do either **Edit Scheme** or **New Scheme**\n \n go to Run section, and change **App Language**\n \n \u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Internationalization7.png\" /\u003e\n \n After finish setting Scheme try to run it!\n \n  \u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Internationalization8.png\" width=\"50%\" height =\"50%\" /\u003e\n  \u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Internationalization9.png\" width=\"50%\" height =\"50%\" /\u003e\n  \n  \n**You are GOOD TO GO**  👏👏👏\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Useful for Localization\n\n - [localazy](https://localazy.com/) localization tool for iOS and macOS apps. Supporting .strings, .stringsdict, .plist and XLIFF files.\n - [locastudio](https://www.cunningo.com/locastudio/index.html) Analyze, review, and edit your app translations.\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Accessibility\n\nAccessibility is all about making the iPhone, iPod touch, and iPad work for as wide a range of people as possible. That can include the very young, the very old, people brand new to computers and mobile devices, and also people with disabilities and special needs. \n\n- Designing your app for accessibility makes it easier to write functional tests, whether you’re using the UI Testing in Xcode.\n- You’ll also broaden your market and user base by making your app usable by a larger group.\n- Implementing accessibility in your app shows you’re willing to go the extra mile for every user, and that’s a good thing.\n\n- [iOS Accessibility: Getting Started](https://www.raywenderlich.com/6827616-ios-accessibility-getting-started)\n\n\n## Accessibility Usage\n\nTo use accessibility, you have to enable this\n\u003e For most UIKit classes, **the default is true, but for UILabel it’s false**\n\n```swift\nlabel.isAccessibilityElement = true\n```\n\n - accessibilityLabel - short description of control e.g. \"Save\" for button, \"Rating\" for label\n - accessibilityHint - helps the user to understand result of the action e.g \"Save the documents\"\n - accessibilityTraits - collection of constants that describe the type of control and/or hot it should be treated\n - accessibilityValue - Used to describe the value of a none-label UI component e.g. \"50%\" for progress bar\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## GCD\nGCD(Grand Central Dispatch) is a low-level API for managing concurrent operations. It can help you improve your app’s responsiveness by deferring computationally expensive tasks to the background.\n\n## DispatchQueue\nAn object that manages the execution of tasks serially or concurrently on your app's main thread or on a background thread.\n\n### main\nWe can say main is a serial queue\n\n### global()\nWe can say global is a concurrent queue\n\n## Thread Safety\n\n[Concurrency \u0026 Thread Safety in Swift](https://medium.com/cubo-ai/concurrency-thread-safety-in-swift-5281535f7d3a)\n[Thread Safety in Swift](https://swiftrocks.com/thread-safety-in-swift)\n\n- **Dispatch Barrier**\n\nUse a barrier to synchronize the execution of one or more tasks in your dispatch queue. \n\n[Dispatch Barrier Apple Documentation](https://developer.apple.com/documentation/dispatch/dispatch_barrier)\n\n- **Dispatch Semaphore**\n\n[Dispatch Semaphore Apple Documentation](https://developer.apple.com/documentation/dispatch/dispatch_semaphore)\n\n\n\n- **NSLock**\n\nAn object that coordinates the operation of multiple threads of execution within the same application.\n\n[NSLock](https://developer.apple.com/documentation/foundation/nslock)\n\n## DispatchGroup\n\n[DispatchGroup Apple Document](https://developer.apple.com/documentation/dispatch/dispatchgroup)\n\n## DispatchWorkItem\n\nThe work you want to perform, encapsulated in a way that lets you attach a completion handle or execution dependencies.\n\n[DispatchWorkItem Apple Document](https://developer.apple.com/documentation/dispatch/dispatchworkitem)\n\n## Operation\n\n[NSOperation Apple Documentation](https://developer.apple.com/documentation/foundation/nsoperation)\n\n\n## OperationQueue\n\n\n[NSOperationQueue Apple Documentation](https://developer.apple.com/documentation/foundation/nsoperationqueue)\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n\n# Thread Sanitizer\nThread Sanitizer is a tool to identifies the potential thread-related corruption issues. And it is a good way to find the [Readers and Writers problem](https://en.wikipedia.org/wiki/Readers%E2%80%93writers_problem) in your application.\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## How to Use Thread Sanitizer\n\nGo to this Option and Click **EDIT SCHEME...** 👈\n\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/address_sanitizer.png\"\u003e\n\nAnd then go to **RUN** and check **THREAD SANITIZER** 👈\n\n\u003cimg src=\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/thread_sanitizer.png\"\u003e\n\n# Testing\n\n## Five Factor Testing\n\n[Five Factor Testing](https://madeintandem.com/blog/five-factor-testing/)\n\n\n\n# Test Double\n\n**Test Double is a generic term for any case where you replace a production object for testing purposes.**\n\n - Mocks - Mocks are pre-programmered with expectations which form a specification of the calls they are expected to receive. They can throw an exception if they receive a call they don't expect and are checked during verification to ensure they got all the calls they were expecting.\n\n```swift\n// exaple code will update\n```\n\n\n - Fake - Objects actually have working implementations, but usually take some shortcut which makes them not suitable for production.\n\n```swift\n// exaple code will update\n```\n\n - Spies - Spies are stubs that also record some information based on how they were called. One form of this might be an email service that records how many messages it was sent.\n\n```swift\n// exaple code will update\n```\n\n - Stubs - Stubs provide canned answers to calls made during the test, usually not responding at all to anything outside what's programmed in for the test.\n\n```swift\n// exaple code will update\n```\n\n - Dummy - Objects are passed around but never actually used. Usually they are just used to fill parameter lists.\n\n```swift\n// exaple code will update\n```\n\n# Useful Debugging Technique\n\n[Debugging in Xcode 13: Tips \u0026 Tricks (2022) – iOS](https://www.youtube.com/watch?v=ZAqnJQn7xp4\u0026list=LL\u0026index=5\u0026ab_channel=iOSAcademy)\n\n## 1. Change expression in debugging stage\n\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/debugging_expression.png\" width = \"80%\" height = \"80%\"\u003e\n\nUse ```expression``` at the beginning and then add whatever what you want to change into. It will change in debugging stage 👍\n\n## 2. Symbolic Breakpoint\n\nIf we want to know whenever hit certain function, use symbolic breakpoint\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n# TDD\n\n**Test Driven Development**\n\n\u003cimg src=\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/TDD.png\" width=\"30%\" height=\"30%\"/\u003e\n\n- [Why Test-Driven Development (TDD)](https://marsner.com/blog/why-test-driven-development-tdd/)\n\n## Reduce Build Time\n\nNormally in complicated Application, build time for testing is crazy therefore, TDD spent most of time in building the project.\n\nHere are useful ways that we can reduce build time when we are working with TDD style.\n\n\n### 1. tuist focus\n\n\n\n### 2. Detach debugger in **Edit Scheme**\n\nun-check Debugger option\n\n\u003cimg src = \"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/detach_debuger.png\"/\u003e\n\n\n\n## Check build time in Xcode\n\nEnter below code in your terminal, be sure to **restart Xcode** after enter this code and **Command + B**\n\n```shell\ndefaults write com.apple.dt.Xcode ShowBuildOperationDuration YES\n```\n\n\u003cimg src = \"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/show_build_time.png\"/\u003e\n\n\n\n\n\n\n\n\n\n\n# BDD\n\n\u003cimg src=\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/BDDvsTDD.png\" width=\"70%\" height=\"70%\"/\u003e\n\nBDD improves communication between tech and non-tech teams and stakeholders. In BDD, tests are more user-focused and based on the system’s behavior.\n\n**Behavior Driven Development**\n\n - Encouraging collaboration across roles to build shared understanding of the problem to be solved\n - Working in rapid, small iterations to increase feedback and the flow of value\n - Producing system documentation that is automatically checked against the system’s behaviour\n \n ## Three Steps(Iterative) in BDD \n \n First, take a small upcoming change to the system – a User Story – and talk about concrete examples of the new functionality to explore, discover and agree on the details of what’s expected to be done.\n \nNext, document those examples in a way that can be automated, and check for agreement.\n\nFinally, implement the behaviour described by each documented example, starting with an automated test to guide the development of the code.\n\n - [Behaviour-Driven Development](https://cucumber.io/docs/bdd/)\n - [What is BDD? An Introduction to Behavioral Driven Development](https://blog.testlodge.com/what-is-bdd/)\n - [The WHY Behind the Code: BDD vs. TDD](https://saucelabs.com/blog/a-two-minute-bdd-overview)\n \n# Code Coverage\n\nBefore start your Testing, add coverage will be a good option to show the result of test\n\nFirst, check code coverage\n\n\u003cimg src =\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/addCoverage1.png\"/\u003e\n\nThen, go to **EDIT SHEME**, check like this\n\n\u003cimg src =\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/addCoverage2.png\"/\u003e\n\n# Integration Testing\n\n[Integration Testing Swift by Sundell](https://www.swiftbysundell.com/articles/integration-tests-in-swift/)\n\n\n\n\n# Unit Testing\n\n[Unit Testing Swift by Sundell](https://www.swiftbysundell.com/basics/unit-testing/)\n\n\n📚📚 Recommend Book 📚📚 \n\n| Book Name   | Authors Name |\n| :----------- | :----------- |\n| iOS Unit Testing by Example | Jon Reid |\n\n# UI Testing\n\nUI Testing, also known as GUI Testing is basically a mechanism meant to test the aspects of any software that a user will come into contact with. This usually means testing the visual elements to verify that they are functioning according to requirements – in terms of functionality and performance. UI testing ensures that UI functions are bug-free.\n\n- [UI Testing: A Detailed Guide](https://www.browserstack.com/guide/ui-testing-guide)\n- [Your first UITest in Swift](https://uxdesign.cc/your-first-uitest-in-swift-847bc5595c26)\n\n\n## Robot Testing\n\nRobot testing is a test design pattern that makes you to create stable, readable, and maintainable tests.\n\n\u003cimg src =\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/robot_testing.png\"/\u003e\n\n- [Robot Pattern Testing for XCUITest](https://www.capitalone.com/tech/software-engineering/robot-pattern-testing-for-xcuitest/)👍\n- [Testing Robots- JAKE WHARTON](https://jakewharton.com/testing-robots/)\n- [Robot Testing Pattern - Overview](https://www.youtube.com/watch?v=ykM9AiYtCz4\u0026ab_channel=HandstandTechnologies)\n\n## Snapshot Testing\n\nSnapshot Testing is a testing technique that can be used in Swift (and other programming languages) to test the user interface (UI) of an application.\n\nIn Snapshot Testing, a snapshot of the UI is taken and compared to a previously saved snapshot to check if any changes have been made. This technique can be used to ensure that changes to the UI do not break the existing functionality of the application.\n\n### Environment Variable\n\nWith using Environment Variable in Xcode, we can directly re-capture failing snapshot test cases\n\n\n\u003cimg src =\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/env_variable.png\"/\u003e\n\nSNAPSHOT_TESTING = YES\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n## TestFlight\n\nTestFlight makes it easy to invite users to test your apps and App Clips and collect valuable feedback before releasing your apps on the App Store.\n\n - [TestFlight Apple](https://developer.apple.com/testflight/)\n\n\n\n\n# CI/CD\n\nCI and CD stand for continuous integration and continuous delivery/continuous deployment\n\n\n - [Why is CI/CD important?](#https://www.synopsys.com/glossary/what-is-cicd.html)\n - [What is CI/CD? Continuous integration and continuous delivery explained](#https://www.infoworld.com/article/3271126/what-is-cicd-continuous-integration-and-continuous-delivery-explained.html)\n - [What’s the difference between agile, CI/CD, and DevOps?](#https://www.synopsys.com/blogs/software-security/agile-cicd-devops-difference/)\n\n## Fastlane\n\nThe easiest way to build and release mobile apps.\n\n- [Fastlane](https://fastlane.tools/)\n- [fastlane Tutorial: Getting Started](https://www.raywenderlich.com/233168-fastlane-tutorial-getting-started)\n\n\u003cimg src =\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/fastlane.png\" /\u003e\n\n\n## Jenkins\n\nJenkins is most popular CI/CD tools \n\n[Jenkins](https://www.jenkins.io/)\n\n\n## Jira\n\nJira is project management software first and foremost, but it began its life in 2002 as an issue tracking platform for software developers\n\n - [Jira](https://www.atlassian.com/software/jira)\n - [What is Jira used for?](https://www.atlassian.com/software/jira/guides/use-cases/what-is-jira-used-for#Jira-for-requirements-\u0026-test-case-management)\n - [What Is Jira: An Overview of a Unique Project Management Tool](https://www.fool.com/the-blueprint/what-is-jira/)\n\n\n## CircleCI\n\n\n\n[CircleCI](https://circleci.com/)\n\n\nYou can integrate Circle CI into Github repo, therefore we can use it in PR.\n\n## Danger\n\n[Danger](https://github.com/danger/danger)\n\n- Danger runs after your CI, automating your team's conventions surrounding code review.\n\n- This provides another logical step in your process, through this Danger can help lint your rote tasks in daily code review.\n\n- You can use Danger to codify your team's norms, leaving humans to think about harder problems.\n\n\n\n## Codemagic \n\n[Codemagic](https://codemagic.io/) - Build, test and deliver your mobile projects 20% faster. \n\n\n## Xcode Cloud\n\n[WWDC21](https://www.apple.com/apple-events/june-2021/?\u0026cid=wwa-us-kwgo-features-slid--Brand-AppleLive-Post-\u0026mtid=20925e1t39169\u0026aosid=p238\u0026mnid=sZH3E0Pf0-dc_mtid_20925e1t39169_pcrid_524281987644_pgrid_129696028064_) Apple released [Xcode Cloud](https://developer.apple.com/xcode-cloud/) for continuous integration\n\nFor more info, go to [Apple Developer Website](https://developer.apple.com/documentation/Xcode/Xcode-Cloud)\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n# Tuist\n\n- Tuist is a command line tool that helps you generate, maintain and interact with Xcode projects.\n\n- [Tuist](https://docs.tuist.io/tutorial/get-started)\n- [Tuist Github](https://github.com/tuist/tuist)\n- [Tuist Tutorial for Xcode](https://www.raywenderlich.com/24508362-tuist-tutorial-for-xcode)\n\n\n# In App Purchase(IAP)\n\n**Requirement**\n\n - Full Apple Developoment Program($99)\n - Physical IPhone Device to test IAP\n \u003e **Simulator can not test IAP!!**\n \n## Paywall\n\n\u003cimg src =\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/paywall.jpeg\" /\u003e\n\nPaywall is a way to restrict access to their information so that only paying users can use it.\n \nLots of developer recommend  80% - (Paywall) - 20%\n\n## Set Up\n\nTBD\n\nFor more info about getting start of IAP, go [here](https://www.raywenderlich.com/5456-in-app-purchase-tutorial-getting-started) 📑\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Notification\n\n - Notifications are an integral way of conveying information to the user outside of an app.\n\n - Notifications can be either local or remote. The app on the device schedules and configures local notifications. In contrast, a server sends remote notifications using Apple Push Notification Service (APNS)\n\n - You can configure both local and remote notifications using the UserNotifications framework. \n\n## Local Notification\n\n - [Local Notifications: Getting Started](https://www.raywenderlich.com/21458686-local-notifications-getting-started)\n - [Swift Local Notification All-In-One](https://itnext.io/swift-local-notification-all-in-one-ee6027ea6e3)\n\n\nIf you set repeatation **less than 60 sec**, it will cause ERROR!\n\n\u003cimg src =\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/Repeatation_Error.png\"/\u003e\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Remote Notification\n\n## APNs\n\nAPNS stands for **Apple Push Notification service**\n\n## APNs Setting\n\nFirst, go to **Signing \u0026 Capabilities** and add two features like this\n\n\u003cimg src = \"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/apsn_Setting.png\"/\u003e\n\n## APNs Usage\n\n- [Push Notifications Tutorial: Getting Started](https://www.raywenderlich.com/11395893-push-notifications-tutorial-getting-started)\n\n\n## FRP\n\nFunctional Reactive Programming \n\n## Rxswift\n\n- [RxSwift raywenderlich](https://www.raywenderlich.com/books/rxswift-reactive-programming-with-swift/v4.0)\n- [RxSwift](https://github.com/ReactiveX/RxSwift) - Github Repository\n- [RxSwift](http://reactivex.io/intro.html) - Website\n\n📚📚 Recommend Book 📚📚 \n\n| Book Name   | Authors Name |\n| :----------- | :----------- |\n| RxSwift: Reactive Programming with Swift  | raywenderlich Tutorial Team |\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Combine\n\nCombine released on iOS13 from Apple for Functional Reactive Programming. \n\n[Swiftbysundell](https://www.swiftbysundell.com/basics/combine/)\n\n📚📚 Recommend Book 📚📚 \n\n| Book Name   | Authors Name |\n| :----------- | :----------- |\n|  Combine: Asynchronous Programming with Swift | raywenderlich Tutorial Team |\n\n## RxCombine\n\nRxCombine provides bi-directional type bridging between RxSwift and Apple's Combine framework.\n\n[RxCombine](https://github.com/CombineCommunity/RxCombine)\n\n\n\n\n\n\n# Security\n\nSecurity secure the data your app manages, and control access to your app.\n\nCheck below for more detail about iOS Security as well as Application security\n\n - [Introduction to Apple platform security](https://support.apple.com/ko-kr/guide/security/seccd5016d31/web)\n - [iOS Security](https://www.cse.wustl.edu/~jain/cse571-14/ftp/ios_security/index.html) \n - [Apple Developer Doc about Security](https://developer.apple.com/documentation/security)\n - [iOS App Security: Best Practices](https://quickbirdstudios.com/blog/ios-app-security-best-practices/)\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Checklist For App Security\n\n - [ ] Keychain For Sensitive Data Storage\n - [ ] Application Transport Security Layer(TSL)\n - [ ] SSL Pinning \n - [ ] Jailbroken Device Check\n - [ ] Disable Debug Logs\n - [ ] Third-Party Library Usage Check \n - [ ] Code Obfuscation\n - [ ] Cryptography \n - [ ] Biometric Access\n \n## Keychain\n\n - [Storing Keys in the Keychain](https://developer.apple.com/documentation/security/certificate_key_and_trust_services/keys/storing_keys_in_the_keychain)\n - [Keychain raywenderlich](https://www.raywenderlich.com/9240-keychain-services-api-tutorial-for-passwords-in-swift)\n\n## SSL Pinning\n\n\u003cimg src = \"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/SSLCertificate.png\"/\u003e\n\nWhen a mobile app communicates with a server, it uses SSL(Secure Socket Layer) pinning technique for protecting the transmitted data against tampering and eavesdropping.\n\n - [Preventing Man-in-the-Middle Attacks in iOS with SSL Pinning](https://www.raywenderlich.com/1484288-preventing-man-in-the-middle-attacks-in-ios-with-ssl-pinning)\n - [How to Perform SSL Pinning in iOS Apps](https://appinventiv.com/blog/ssl-pinning-in-ios-app/)\n\n## How SSL Works\n\n1. A browser attempts to connect with a website which is secured with a SSL. The browser then requests the web server to identify itself.\n2. Web server then sends the browser its SSL certificate copy.\n3. The browser checks if the SSL certificate must be trusted. If it can be, a message is sent to the web server.\n4. Web server then sends back an acknowledgement to begin the SSL encrypted session.\n5. The encrypted data is then finally shared between the browser and web server.\n\n## SSL pinning methods\n\n - Pin the certificate – you can download the server’s certificate and bundle them in the app. At the runtime, the app compares the server certificate to ones that you have embedded. \n - Pin the public key – you can retrieve the public key of certificate in the code as string. At the runtime, the application compared the certificate’s public key to one which is hard-coded in the code. \n\n## Using URLSession\n\n```swift\nfunc urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -\u003e Void) {\n    if (challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust) {\n        if let serverTrust = challenge.protectionSpace.serverTrust {\n            var secresult = SecTrustResultType.invalid\n            let status = SecTrustEvaluate(serverTrust, \u0026secresult)\n            \n            if (errSecSuccess == status) {\n                if let serverCertificate = SecTrustGetCertificateAtIndex(serverTrust, 0) {\n                    let serverCertificateData = SecCertificateCopyData(serverCertificate)\n                    let data = CFDataGetBytePtr(serverCertificateData);\n                    let size = CFDataGetLength(serverCertificateData);\n                    let cert1 = NSData(bytes: data, length: size)\n                    let file_der = Bundle.main.path(forResource: \"name-of-cert-file\", ofType: \"cer\")\n                    \n                    if let file = file_der {\n                        if let cert2 = NSData(contentsOfFile: file) {\n                            if cert1.isEqual(to: cert2 as Data) { completionHandler(URLSession.AuthChallengeDisposition.useCredential, URLCredential(trust:serverTrust))\n                                return\n                            }\n                        }\n                    }\n                }\n            }\n        }\n    }\n    \n    // Pinning failed completionHandler(URLSession.AuthChallengeDisposition.cancelAuthenticationChallenge, nil)\n}\n```\n\n## Using Alamofire 5\n\nIf you are using above version, this code should be changed\n\n[More Info](https://devgenes.com/posts/SSL-Pinning-With-Alamofire/)\n\nFirst, Download SSL certificate to your project folder\n\u003e https://www.yourdomain.com (NOT IN THIS WAY)\n\n```bash\nopenssl s_client -showcerts -connect yourdomain.com:443 \u003c /dev/null | openssl x509 -outform DER \u003e yourdomain.cer\n```\n\nMake a SessionManager to get SSL Pinning\n\n```swift\n\nlet sessionManager: SessionManager = {\n    let serverTrustPolicies: [String: ServerTrustPolicy] = [\"yourdomain.com\": .pinCertificates(certificates: ServerTrustPolicy.certificates(),\n                                                                                                validateCertificateChain: true,\n                                                                                                validateHost: true)]\n    \n    return SessionManager(serverTrustPolicyManager: ServerTrustPolicyManager(policies: serverTrustPolicies))\n}()\n```\n\nrequest from sessionManager, if it is invalid, print error\n\n```swift\nsessionManager.request(\"https://yourdomain.com\").responseString { (dataResponse) in\n    switch dataResponse.result {\n    case .failure(let err):\n        print(err)\n    case .success(let val):\n        print(val)\n        if let headerFields = dataResponse.response?.allHeaderFields {\n            print(headerFields)\n        }\n    }\n}\n```\n\n### Relative Stuff\nTrustKit makes it easy to deploy SSL public key pinning\n\n[TrustKit](https://github.com/datatheorem/TrustKit)\n\n## Code Obfuscation\n\nCode obfuscation is the act of deliberately obscuring source code, making it very difficult for humans to understand, and making it useless to hackers who may have ulterior motives.\n\n## Cryptography\n\n[Introducing Swift Crypto](https://swift.org/blog/crypto/)\n\n## Biometric Access\n\nApple made a big change when it released the iPhone X: It ditched Touch ID fingerprint security for a new face-based biometric sign-on tool called Face ID. The fingerprint scanner on most post-iPhone X Apple products is gone, and in its place is a new camera array capable of capturing a face map that is, according to Apple, 20 times less likely to be hacked than a Touch ID fingerprint.\n\n[Apple's Face ID: Cheat sheet](https://www.techrepublic.com/article/apples-face-id-everything-iphone-x-users-need-to-know/)\n\n## Face ID \u0026 Touch ID\n\nTo use Face ID, Add **Privacy - Face ID Usage Description** into your info.plist file in your project\n\n\u003cimg src = \"https://github.com/jphong1111/Useful_Swift/blob/main/Images/FaceID_Info.png\" width = \"50%\" height = \"50%\"/\u003e\n\nimport LocalAuthentication, which can allow you to implement Biometric Access\n\n```swift\nimport LocalAuthentication\n```\n\nAfter that, using LAContext() we can implement Face ID\n\nHere are simple example that how Face ID can impelement\n\n```swift\n@IBAction private func isTouched(_ sender: UIButton!) {\n        let context = LAContext()\n        var error: NSError? = nil\n        if  context.canEvaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, error: \u0026error) {\n            let reason = \"touch id\"\n            context.evaluatePolicy(.deviceOwnerAuthenticationWithBiometrics, localizedReason: reason) { [weak self](success, error) in\n                DispatchQueue.main.async {\n                   \n                    guard success, error == nil else {\n                        // If Fail\n                        let alert  = UIAlertController(title: \"FAceID Fail\", message: \"error\", preferredStyle: .alert)\n                        let action = UIAlertAction(title: \"cancle\", style: .cancel, handler: nil)\n                        alert.addAction(action)\n                        self?.present(alert, animated: true, completion: nil)\n                        return\n                    }\n                    // If success\n                    let vc = UIViewController()\n                    vc.title = \"hi\"\n                    vc.view.backgroundColor = .blue\n                    self?.present(vc, animated: true, completion: nil)\n                }\n            }\n        } else {\n            // If device is not supporting Face ID\n        }\n    }\n```\n\u003e Error Handling is your own part\n\n**You are GOOD TO GO**  👏👏👏\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Objective-C\n\nStill we need to study Objective-C for legacy code which is still remain in our project! \n\nHere are some useful website that you can study about simple concept of Obj-C!!\n\n[Learn Objective-C in 24 Days](https://www.binpress.com/learn-objective-c-24-days/)\n\n📚📚 Recommend Book 📚📚 \n\n| Book Name   | Authors Name |\n| :----------- | :----------- |\n| Objective-C Programming: The Big Nerd Ranch Guide | Aaron Hillegass, Mikey Ward |\n\n### Pure Swift Application?\n\nCan we really say \"Our application is built with pure Swift\"?. NO! Lots of Objective-C codes are running in the background to built swift.\n\nHere is a example that you can try \n\n**Simply create a pure swift application and use this lines in debug console!!**\n\n```swift\nbreak set -r \"-\\[.*\\]\"\nbreak set -r DebugMode\nbreak set -r Emoji\n```\n\nUse one of above line when you want to find out how many Objective-C codes are consist in simple pure swift application!!\n\n\u003cimg src=\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/ObjcBreakPoint.png\" /\u003e\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Bridging Header\n\nBridging header means access classes and other declarations from your Objective-C code in Swift.\n\n[Importing Objective-C into Swift Apple Documentation](https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_objective-c_into_swift)\n\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n# Error Search\n\nFind your common error here\n\n[Error Search](https://github.com/jphong1111/Useful_Swift/blob/error-search/README.md)\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n# Useful Stuff\n\nI listed some of the useful \u0026 interesting stuff related with Swift\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Useful Blogs for iOS Developers\n\nHere are the useful blog list which you can get references \u0026 knowledges about iOS development\n\n- [SwiftLee](https://www.avanderlee.com/) 👍\n- [Apple Developer](https://developer.apple.com/videos/) Find recent technique with videos and example codes!!\n- [appinventiv](https://appinventiv.com/blog/) Including iOS and others!! \n- Continue adding lists...\n\n\n## How to submit your app to the AppStore\n    \n   - [Publishing to AppStore](https://codewithchris.com/submit-your-app-to-the-app-store/#apple-developer-program)\n   - [StoreKit](https://developer.apple.com/documentation/storekit)\n   - [What is a provisioning profile \u0026 code signing in iOS?](https://abhimuralidharan.medium.com/what-is-a-provisioning-profile-in-ios-77987a7c54c2)\n  \n## iOS Version Adoption Tracker\n\nYou can check the iOS Version adoption in this site\n\n[iOS Version Adoption Tracker](https://mixpanel.com/trends/#report/ios_16)\n\n\n\u003cimg src=\"https://github.com/jphong1111/awesome-ios-developer/blob/main/Images/iOS16_adoption.png\" /\u003e\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n\n## Online Swift Playground\n\n[SwiftPlayground](http://online.swiftplayground.run/) -  Online Swift Playground\n\n## Show Preview in UIKit(Build UI with Code Base) 👍 👍 👍 👍 👍\n\n[Inject (3rd Party Library)](https://github.com/krzysztofzablocki/Inject)\n\nCopy this code and Paste into your controller\n\n```swift\n#if canImport(SwiftUI) \u0026\u0026 DEBUG\nimport SwiftUI\nstruct SwiftLeeViewRepresentable: UIViewRepresentable {\n    func makeUIView(context: Context) -\u003e UIView {\n        return UIStoryboard(name: \"Main\", bundle: Bundle.main).instantiateInitialViewController()!.view\n    }\n    \n    func updateUIView(_ view: UIView, context: Context) {\n        \n    }\n}\n\n@available(iOS 13.0, *)\nstruct SwiftLeeViewController_Preview: PreviewProvider {\n    static var previews: some View {\n        SwiftLeeViewRepresentable()\n    }\n}\n#endif\n```\n\n\nEnable canvas option like this\n\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/preview%20using%20canvas.png\"\u003e\n\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/preivew_screenShot.png\"\u003e\n\n\n**You are GOOD TO GO**  👏👏👏\n\n## Compare Changes in Swift Version\n\nYou can compare changes based on Swift Verison\n\n[Whatsnewinswift](https://www.whatsnewinswift.com/?from=5.3\u0026to=5.4)\n\n## Managing Xcode Space\n\nThis will be helful when you are running out of storage in your mac\n\n```bash\n# 1\necho \"Removing Derived Data...\"\nrm -rf ~/Library/Developer/Xcode/DerivedData/\n\n# 2\necho \"Removing Device Support...\"\nrm -rf ~/Library/Developer/Xcode/iOS\\ DeviceSupport\nrm -rf ~/Library/Developer/Xcode/watchOS\\ DeviceSupport\nrm -rf ~/Library/Developer/Xcode/tvOS\\ DeviceSupport\n\n# 3\necho \"Removing old simulators...\"\nxcrun simctl delete unavailable\n\n# 4\necho \"Removing caches...\"\nrm -rf ~/Library/Caches/com.apple.dt.Xcode\nrm -rf ~/Library/Caches/org.carthage.CarthageKit\n\n# 5\nif command -v pod  \u0026\u003e /dev/null\nthen\n    # 6\n    pod cache clean --all\nfi\n\necho \"Done!\"\n```\n\nAfter writing, run it with this command\n\n```bash\nchmod u+x clean-xcode.sh\n```\n\nAnd then\n\n```script\n./clean-xcode.sh\n```\n\n**This will cleans out derived data, device support, simulators and caches. So that once you execute it, You have to build your project AGAIN**\n\nFor More Info, visit [here](https://www.raywenderlich.com/19998365-understanding-and-managing-xcode-space)\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n## Roadmap for iOS Developer\n\ncheck this out [here](https://github.com/BohdanOrlov/iOS-Developer-Roadmap)\n\n## Use VIM in Xcode\n\n Check [this](https://www.twilio.com/blog/2017/06/adding-vim-keybindings-to-xcode-with-xvim.html) site for more info!\n \n ~~Since Xcode 13(BETA), you can find Vim in **Preference -\u003e Text Editing -\u003e Editing -\u003e Enable Vim Key bindings**~~\n this feature deprecated in Xcode 13(BETA)\n\u003cimg src=\"https://github.com/jphong1111/Useful_Swift/blob/main/Images/Vim.png\"\u003e\n\n\n## Write README.md\n\n[how-to-write-a-readme](https://medium.com/@saumya.ranjan/how-to-write-a-readme-md-file-markdown-file-20cb7cbcd6f) will help you to write a README.md file more dynamically 👍\n\nAlso you can edit Readme.md file with VSCode Extension! Check out in VSCode!\n\n[Markdown Preview Enhanced](https://github.com/shd101wyy/markdown-preview-enhanced)\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n# ❤ Supporters\n\n## ⭐ Stargazers\n\n\u003ca href=\"https://github.com/jphong1111/awesome-ios-developer/stargazers\"\u003e\n\u003cimg src=\"https://reporoster.com/stars/jphong1111/awesome-ios-developer\"\u003e\u003c/a\u003e\n\n## 🍴 Forks\n\n\u003ca href=\"https://github.com/jphong1111/awesome-ios-developer/fork\"\u003e\n\u003cimg src=\"https://reporoster.com/forks/jphong1111/awesome-ios-developer\"\u003e\u003c/a\u003e\n\n## 🌟 GitHub Stargazers\n\n[![Stargazers over time](https://starchart.cc/jphong1111/useful_swift.svg)](https://starchart.cc/jphong1111/awesome-ios-developer) \n\n\n## Author\n\nThis README.md file is written by **Jungpyo Hong (Dennis)**\nemail: ghdwjdvy96@gmail.com\n\n\u003cp align=\"right\"\u003e\n\u003ca href=\"#-content\"\u003eBack to Content\u003c/a\u003e\n\u003c/p\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjphong1111%2Fawesome-ios-developer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjphong1111%2Fawesome-ios-developer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjphong1111%2Fawesome-ios-developer/lists"}