How to disable horizontal scrolling of SFSafariViewController? - ios

I need to disable SFSafariViewController horizontal scrolling. I want to fit the view respective of window. Is there any solution for the problem
?

Related

Horizontal scroll in UIWebView and vertical scroll in UITableView

I have a UITableView with cells. One of the cells has a full size UIWebView.
On the web view I want ONLY to enable horizontal scroll (like coverflow).
I can do that with this ansawer: https://stackoverflow.com/a/12575036/406055
But: Then the UIWebView intercepts the vertical scroll (thus without performing it). I want the vertical scroll gesture to affect the tableview, not the web view.
The idea I have is to either overlay the web view with a UIView and add gesture recognizers and then pass the gesture on to the UIWebView only if it is horizontal.
But any other suggestions is welcome too.

Make the UICollectionView scrollable even when its not full

The UICollectionView disables scrolling by default when there is not enough cells in the view. When this occurs I need it to bounce back to position when pulled. Im am aware of a hack where I can fill the UICollectionView with empty tables to enable scrolling but I was hoping there would be a slightly more fluid example as
I don't want the view to scroll but instead to automatically bounce back to its position. This is because of the effect I have implemented below as can see below.
https://youtu.be/r75xB9-Mb4g
Is there a way to achieve this simply, when there is not enough cells in the UICollectionView the scroll is disabled.
For vertical scrolling:
self.collectionView.alwaysBounceVertical = true;
For horizontal scrolling:
self.collectionView.alwaysBounceHorizontal = true;

How to horizontally scroll between pages of controls in UIScrollView iOS/Swift

I am trying to find the way to implement a scroll view on my viewController screen, which allows the user to scroll between different pages of controls and have the controls around it, outside the scroll view, react to whatever data or actions take place in the scroll view.
All the tutorials I have found is adding a scroll view that shows a carousel of images, or programmatically adding coloured frames. Very little control interaction.
But none that shows how to create 2-3 pages of controls (buttons and labels), and how to integrate it with the parent view (so the parent view and scroll view talk to each other in one view).
So for now, what would be the first step to create a scroll view with 2 'pages' of controls? Has anyone come across any good resources for this? How is the best way to achieve this?
Thanks!
Add Scroll View. Add top,left,right, bottom constraint to scroll view. Set horizontal only in storyboard.
Add a view inside scroll view. Now add height constraint from this view to super view. (Not the scroll view.) Specify some width and add width constraint.
I suggest you to use UIPageViewController for this type of scrolling.
I suggest you go for UICollectionViewLayout and enable paging to true. Using this will give you the finest control of each page and the horizontal as well as vertical scroll.

Scroll content inside slide (touch devices) in reveal.js

Is there possibility to scroll content inside the slide on touch devices? My content has vertical scroll bar at desktop view, but on touch devices I can't scroll content at all. I guess scroll event is catched by library and is treated as scrolling to nested vertical slides. I will be happy to get some help here, thank you in advance.

Detect Vertical Scrolling Webview

How can I detect if webview can't scroll vertically anymore? I have the auto scrolling method and I want to make sure it stops after the content has fully displayed.

Resources