Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

scrolling would be great #434

Open
luckychris opened this issue Nov 21, 2018 · 1 comment
Open

scrolling would be great #434

luckychris opened this issue Nov 21, 2018 · 1 comment

Comments

@luckychris
Copy link

If you have a lot of entries (more than would fit to the screen), not all entries are clickable/reachable. Would be great if there would be a scrolling functionality.

@grantespo
Copy link

Note: Scrolling is possible:

You just need to add ScrollView as the alert's custom view:

Here's the heiarchy :
UIScrollView(x: y: width: height) -> ContentView -> The View(s) You want Scrollable Go Here

Just make sure you add Swift Anchors for your contentview and views you want scrollable:

Check out the article below, I achieved scrolling custom scubview by using the flow in the article, but instead of using storyboard, I used swift constraints (anchors)

e.g: https://medium.com/@pradeep_chauhan/how-to-configure-a-uiscrollview-with-auto-layout-in-interface-builder-218dcb4022d7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants