Ramotion / cardslider

:octocat: 🃏 Cardslider is a design UI controller that allows you to swipe through cards with pictures and accompanying descriptions.
https://www.ramotion.com/iphone-app-development-ui-library-for-swiping-through-objects/
MIT License
1.27k stars 102 forks source link

does not work on iPad #15

Closed luckychris closed 4 years ago

luckychris commented 4 years ago

I tried the demo on iPad, but there are size issues...cells and collectionview are far too small

musa-almatri commented 4 years ago

its an issue with iOS 13 & Xcode 11 that changed the default modalPresentationStyle

change it to fullScreen and it will work

    let cardSlider = CardSliderViewController.with(dataSource: self)
    cardSlider.title = "Movies"
    cardSlider.modalPresentationStyle = .fullScreen

    present(cardSlider, animated: true, completion: nil)