skip to Main Content

Swift – saving a file to icloud drive – Ios swift

I am trying to save a file to iCloud with the following code in my iOS app: if let containerUrl = FileManager.default.url(forUbiquityContainerIdentifier: nil)?.appendingPathComponent("Documents") { if !FileManager.default.fileExists(atPath: containerUrl.path, isDirectory: nil) { do { try FileManager.default.createDirectory(at: containerUrl, withIntermediateDirectories: true, attributes: nil) }…

VIEW QUESTION

Screen size incorrect after UICollectionView rotation – Ios swift

I have a UICollectionView in my view controller defined as follows: let layout = UICollectionViewFlowLayout() layout.scrollDirection = .vertical layout.minimumLineSpacing = Constants.minimumLineSpacing layout.minimumInteritemSpacing = Constants.minimumInteritemSpacing let collectionView = UICollectionView(frame: .zero, collectionViewLayout: layout) collectionView.backgroundColor = Constants.backgroundColor collectionView.contentInset = Constants.collectionViewContentInsets collectionView.refreshControl = refreshControl…

VIEW QUESTION
Back To Top
Search