Giter Site home page Giter Site logo

Comments (11)

s4cha avatar s4cha commented on May 10, 2024

@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.

s4cha avatar s4cha commented on May 10, 2024

would such an api work for you?

config.startOnScreen = .library //.video, defaults to .photo

from ypimagepicker.

ChintanWeapp avatar ChintanWeapp commented on May 10, 2024

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.

s4cha avatar s4cha commented on May 10, 2024

@ChintanWeapp,
It's totally normal, the api above is not yet released. I wanted to make sure you agreed before releasing it :)

from ypimagepicker.

ChintanWeapp avatar ChintanWeapp commented on May 10, 2024

from ypimagepicker.

s4cha avatar s4cha commented on May 10, 2024

@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.

userdar avatar userdar commented on May 10, 2024

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.

s4cha avatar s4cha commented on May 10, 2024

@userdar oops that's weird indeed! I'm going to look into this now, thanks for your help and patience :)

from ypimagepicker.

s4cha avatar s4cha commented on May 10, 2024

@userdar https://github.com/Yummypets/YPImagePicker/releases/tag/2.4.1
should solve your issue ;)

from ypimagepicker.

s4cha avatar s4cha commented on May 10, 2024

Closing this for now, don't hesitate to reopen if you encounter issues :)

from ypimagepicker.

RogelioHIT avatar RogelioHIT commented on May 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.