Comments (11)
@ChintanWeapp I'm looking at it at the moment it shouldn't be too difficult to implement :)
Please excuse the late reply,
Cheers
from ypimagepicker.
would such an api work for you?
config.startOnScreen = .library //.video, defaults to .photo
from ypimagepicker.
I have write this line in the code as following block func showPicker() -> Void {
var config = YPImagePickerConfiguration()
config.startOnScreen = .library
config.onlySquareImagesFromLibrary = false
config.onlySquareImagesFromCamera = true
config.libraryTargetImageSize = .original
config.showsVideo = true
config.usesFrontCamera = false
config.showsFilters = true
config.shouldSaveNewPicturesToAlbum = true
config.videoCompression = AVAssetExportPresetHighestQuality
config.albumName = "Yearbook"
// Build a picker with your configuration
let picker = YPImagePicker(configuration: config)}
}
But it gives an error. If I've made any mistake to write it, where should I write this ?
from ypimagepicker.
@ChintanWeapp,
It's totally normal, the api above is not yet released. I wanted to make sure you agreed before releasing it :)
from ypimagepicker.
from ypimagepicker.
@ChintanWeapp This is now available in 2.4.0
https://github.com/Yummypets/YPImagePicker/releases/tag/2.4.0
Thanks for the request @ChintanWeapp :)
Let me know if that works as you expected,
Have a fantastic day and year 2018 !
from ypimagepicker.
well @s4cha it works but there is a problem when set startonscreen = .library there is no next button up right :). when you switch to another mode (photo in my case) next button comes :)
from ypimagepicker.
@userdar oops that's weird indeed! I'm going to look into this now, thanks for your help and patience :)
from ypimagepicker.
@userdar https://github.com/Yummypets/YPImagePicker/releases/tag/2.4.1
should solve your issue ;)
from ypimagepicker.
Closing this for now, don't hesitate to reopen if you encounter issues :)
from ypimagepicker.
Hi, I'm setting video as start screen, but keeps going to library my config is
var config = YPImagePickerConfiguration()
config.usesFrontCamera = false
config.showsPhotoFilters = false
config.showsVideoTrimmer = false
config.shouldSaveNewPicturesToAlbum = false
if isVideoRequired {
config.screens = [.library, .video]
config.library.mediaType = .video
config.startOnScreen = .video
}
I'm doing something wrong? or is there another way to force this?
The problem is that if the device don't have any video, it just closes the picker, and it seems like an error
from ypimagepicker.
Related Issues (20)
- Set NavigationRightButton text to "ok" or "done" on the last page
- Crop multiple selected image
- Question: How can I customize cancel button in SwiftUI?
- Crash App in release version HOT 1
- library picker text not showing with updated Localization on every time open picker HOT 1
- App Crashes when Changing Selected Image HOT 1
- Cannot support Carthage HOT 2
- showsCrop doesn't work with multiple selection HOT 1
- Use volume up / volume down buttons to shoot a picture
- onlySquare does not crop images to square HOT 4
- If you're trying to override traits, you must use the appropriate API.
- App crashes or freezes when selecting multiple videos HOT 1
- photo from camera can not find the PHAssets HOT 3
- App Freez
- feat: new yml forms for issues HOT 1
- Video size issue selecting from gallery
- Stored properties cannot be marked unavailable with '@available' HOT 12
- Invalid zoom in/out
- Does not compile with XCode 15.0 Beta 2 (13 errors) HOT 2
- Inquiry about adding silent camera support
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 ypimagepicker.