If .DS_Store was never added to your git repository, simply add it to your .gitignore file.
.gitignore
In your the root directory of your app and simply write
| // | |
| // HostingCell.swift | |
| // theathletic-ios | |
| // | |
| // Created by . | |
| // Copyright © 2021 The Athletic. All rights reserved. | |
| // | |
| import SwiftUI | |
| import UIKit | 
| // | |
| // Feel free to use this code in your project. | |
| // Inspired by SO answer https://stackoverflow.com/a/65743126 | |
| // Uses DeviceKit as a dependency https://github.com/devicekit/DeviceKit | |
| // | |
| import Foundation | |
| import MessageUI | |
| import DeviceKit | 
| import Foundation | |
| import SwiftUI | |
| struct TappableColoredText: View { | |
| enum Component { | |
| case text(String) | |
| case tappable(String, () -> Void) | |
| } | |
| let components: [Component] | 
| import UIKit | |
| //MARK: - UIButton Animations | |
| extension UIButton { | |
| // Contract and retract animation | |
| func contractRetractBtn(duration: Double) { | |
| let contraction = CASpringAnimation(keyPath: "transform.scale") | |
| contraction.duration = duration | |
| contraction.fromValue = 0.96 | 
| import Foundation | |
| extension Character { | |
| var isEmoji: Bool { | |
| return unicodeScalars.allSatisfy { $0.properties.isEmoji } | |
| } | |
| } | |
| func recentlyUsedEmoji() -> [Character]? { | |
| #if os(iOS) | 
| import Foundation | |
| import AVFoundation | |
| extension AVAsset { | |
| func cropVideoTrack(at index: Int, cropRect: CGRect, outputURL: URL, completion: @escaping (Result<Void, Swift.Error>) -> Void) { | |
| enum Orientation { | |
| case up, down, right, left | 
| // | |
| // CameraController.swift | |
| // | |
| import AVFoundation | |
| import Photos | |
| import UIKit | |
| class CameraController: UIViewController { | |
| enum Camera { | 
| I hava a folder inside CustomerDocuments in Firebase cloud storage name xyz which contains many types of file like .pdf,.txt,.png etc. | |
| function deletefromstorage(quoteiddelete) | |
| { | |
| //quoteiddelete contains folder name in CustomerDocuments which we want to delete. | |
| const Storage = require('@google-cloud/storage'); | |
| const storage = new Storage(); | |
| const srcBucketName = 'abc.apot.com'; | 
| func testControllerShowsAlertIfUserLogsInWithEmptyUsernameAndPasswordTextField() { | |
| // mock of LoginViewController | |
| class MockLoginViewController: LoginViewController { | |
| var presentViewControllerTarget: UIViewController? | |
| override func presentViewController(viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)?) { | |
| presentViewControllerTarget = viewControllerToPresent | |
| } | |
| } | |