swift
Translate text using “MLKitTranslate” model
Here i used google MLKitTranslate model. I used pod ‘GoogleMLKit/Translate’, ‘3.2.0’ .Create enum which language would be translate.
Read moreCollections of Swift
Advantages of collections: var collectionArray = [“iOS”, “Flutter”, “iOS”, “Android”, “Web”] collectionArray.map{$0.uppercased()} Output: [“IOS”, “FLUTTER”, “IOS”, “ANDROID”, “WEB”] collectionArray.filter{$0 ==
Read moreMerge Multiple Videos in Swift
AVFoundation: This class has the purpose of arranging different assets and types of assets into a single asset for playback
Read moreNavigation Bar design guideline
Navigation bars A navigation bar appears at the top of an app screen, enabling navigation through a hierarchy of content.
Read moreAdd Data in File System Swift
When we need saved small amount of data then we use UserDefaults but when we need large amount of
Read moreHow i will Read & Write Data in path Swift?
//directory let path = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask)[0].appendingPathComponent(“fileSave”) let data: Data! //for Read Data do{ data = try Data(contentsOf: path)
Read moreHow i will setup ratio in video swift?
var composition = AVMutableComposition() let vidtrack = composition.tracks(withMediaType: .video)[0] let sz = vidtrack.naturalSize //set ration here let rect =
Read moreHow i will find out black area in playerView swift?
var composition = AVMutableComposition() let vidtrack = composition.tracks(withMediaType: .video)[0] let sz = vidtrack.naturalSize var trackSize = sz var videoViewSize =
Read moreProtocol in Swift
A protocol defines a blueprint of methods, properties and other requirements that suit a particular task or piece of functionality.
Read more