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
| String.prototype.extract = function(prefix, suffix) { | |
| s = this; | |
| var i = s.indexOf(prefix); | |
| if (i >= 0) { | |
| s = s.substring(i + prefix.length); | |
| } | |
| else { | |
| return ''; | |
| } | |
| if (suffix) { |
| import XCTest | |
| @testable import YourAppTargetname | |
| class SideMenuViewControllerTest: XCTestCase { | |
| var viewControllerUnderTest: SideMenuViewController! | |
| override func setUp() { | |
| super.setUp() | |
| var mediaJSON = { "categories" : [ { "name" : "Movies", | |
| "videos" : [ | |
| { "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
| "subtitle" : "By Blender Foundation", | |
| "thumb" : "images/BigBuckBunny.jpg", | |
| "title" : "Big Buck Bunny" | |
| }, | |
| { "description" : "The first Blender Open Movie from 2006", | |
| "sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
| func testControllerShowsAlertIfUserLogsInWithEmptyUsernameAndPasswordTextField() { | |
| // mock of LoginViewController | |
| class MockLoginViewController: LoginViewController { | |
| var presentViewControllerTarget: UIViewController? | |
| override func presentViewController(viewControllerToPresent: UIViewController, animated flag: Bool, completion: (() -> Void)?) { | |
| presentViewControllerTarget = viewControllerToPresent | |
| } | |
| } | |
| 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'; |
| // | |
| // CameraController.swift | |
| // | |
| import AVFoundation | |
| import Photos | |
| import UIKit | |
| class CameraController: UIViewController { | |
| enum Camera { |
| 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 |
| import Foundation | |
| extension Character { | |
| var isEmoji: Bool { | |
| return unicodeScalars.allSatisfy { $0.properties.isEmoji } | |
| } | |
| } | |
| func recentlyUsedEmoji() -> [Character]? { | |
| #if os(iOS) |
| 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 |