PaoloCuscela / Cards

Awesome iOS 11 appstore cards in swift 5.
MIT License
4.2k stars 274 forks source link

Scroll detailView programmatically #103

Closed Ragazzetto closed 5 years ago

Ragazzetto commented 5 years ago

Hi Guys

I can't a way to scroll the detail view programmatically

I would like to manage that in this delegate

func cardDidShowDetailView(card: Card) {
    }

but I can't use something like this

card.detailView.scrollView.setContentOffset(bottomOffset, animated: true)

or something like this

card.scrollView.setContentOffset(bottomOffset, animated: true)

How can I do that ?

Thank you in advance

Vanni

Ragazzetto commented 5 years ago

Excuse me, everyone.

I was able to solve the problem by modifying the DetailViewController.swift according to my needs.

Thank you.