Comments (2)
Changed the whole thing to
func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : Any]) {
guard let image = (info[UIImagePickerControllerOriginalImage] as? UIImage) ?? (info[UIImagePickerControllerEditedImage] as? UIImage) else {
return
}
self.createAsset(from: image) { [weak self] (asset, error) in
if let asset = asset {
self?.addAsset(asset)
self?.selectAsset(asset)
} else if let error = error {
print("Error saving photo \(error)")
} else {
self?.startFetchingAssets()
}
}
picker.dismiss(animated: true, completion: nil)
}
And it built.
from tatsi.
That's normal, Swift 4.2 introduced a "key" type for lots of these kinds of dictionary types. While Swift 1-4 still used the string type from Objective-C.
from tatsi.
Related Issues (20)
- Do not count the number of photos in the album every time. They can be cached. HOT 2
- Small 50x50 thumbnails on iOS 13 when modalPresentationStyle is fullscreen
- Swift Package Manager support
- Finish and Album button are not visible due to the white color HOT 3
- iOS 13 Memory Issue HOT 4
- 1.1.7 Cocoapods release HOT 1
- Tatsi crashes on `PHImageManager.requestImage` HOT 1
- Wrong navigation bar padding when presented as second modal view controller HOT 1
- Its not "Support for smart albums, user created albums and iCloud shared albums" HOT 1
- Last selected album or library HOT 2
- Image selection sequence issue and number show of selection HOT 3
- Preselected images when the picker is opened HOT 9
- Low Quality Images after Importing! HOT 4
- video max duration HOT 1
- Link color configuration not completely implemented HOT 1
- Is this project still necessary? HOT 1
- Reusable cell HOT 1
- Handling PHAuthorizationStatus.limited HOT 1
- Integration with SwiftUI HOT 2
- drag finger to select multiple not supported HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tatsi.