Questions tagged [uipageviewcontroller]

UIPageViewController is an iOS container view controller that manages the display one of one or more content view controllers. It provides the ability the change of the controller via swipe gestures and also supports animated transitions.

uipageviewcontroller
Filter by
Sorted by
Tagged with
0 votes
1 answer
147 views

UIPageViewController reset states swift

i would like to ask if there is any ways we can reset our view in UIPageViewController implementation. For example I have two views, in View A, there is a button which changed text upon clicking as ...
William Loke's user avatar
0 votes
0 answers
353 views

Flutter PageView pages with different width

I am wondered, is there a way to show PageView with pages of different width? So what I need: one page is full-screen width size, and the second one is 0.75 of it (so when user scroll to second page 0....
Andriy Antonov's user avatar
0 votes
1 answer
355 views

How to pass data between UIPageViewControllers in swift?

I have a UIPageViewController with 4 View Controllers in it. In the second VC, the user enters some data. In the last VC, there is a button that the user clicks to insert these data into DB. I want to ...
mohamad's user avatar
  • 39
0 votes
1 answer
861 views

How to set the PageViewController to cover the whole screen and not be modal?

I am implementing a UIPageViewController to my app to try to build a UI like Tinder, in which you can swipe left and right to not only like or dislike a person, but to navigate different screens, i.e. ...
ProudHKer's user avatar
0 votes
0 answers
99 views

How do I create a switch statement - using a UISegmentedControl - to switch between view controllers?

I have a UIViewController which features a UISegmented control placed in the nav bar to navigate between 2 vertical scrolling UIPageViewControllers. How do I implement a switch statement to switch ...
David James Street's user avatar
2 votes
0 answers
256 views

How do I add configure an AVPlayer to present an image rather than video?

I have a page view controller - a feed - which an AVPlayer is nested in. How would I configure the AVPlayer to present just an image, or add a switch statement, to present an ImageViewController when ...
David James Street's user avatar
1 vote
0 answers
130 views

TransformerPageController is not working .when I controlled it from AwesomeSlide in flutter

when I try to control the TransformerPageView from the awesome slide it not working. and at the same time, TransformerPageView does not work on swipe. if I removed the controller from ...
benten's user avatar
  • 712
4 votes
2 answers
980 views

How to fix UIPageViewController manual pagination?

UIPageViewController manual pagination not working properly. Automatic pagination working fine, but when we rotate manually it's not working properly. My ViewController.Swift code import UIKit class ...
Naresh's user avatar
  • 17.4k
0 votes
1 answer
2k views

SwiftUI + UIPageViewController, multiple view types

I want to use a UIPageViewController in my SwiftUI app, as demonstrated in this tutorial. However, the tutorial passes in identical view types as pages, and I want to pass in any type of view. struct ...
bze12's user avatar
  • 753
2 votes
0 answers
773 views

SwiftUI: performance issue with UIViewControllerRepresentable UIPageViewController

As pure SwiftUI PageViewControllers using TabView with .tabViewStyle(PageTabViewStyle()) currently come with a severe lagging when swiping between pages, I tried to implement a PageViewController ...
mmklug's user avatar
  • 2,312
0 votes
1 answer
170 views

Child ViewController Not Receiving Delegate Calls from Parent PageViewController

I'm trying to send some data with a delegate call from a Parent PageViewController to a Child ViewController. However, at the moment, this doesn't work. I have my views set up like this: ...
Anthony's user avatar
  • 133
-1 votes
1 answer
91 views

UIPageViewController + firebase

I'm using UIPageViewController to make book pages and the pages are images that will be fetched from the firebase. the problem is I got this error (Cannot convert value of type 'books' to expected ...
Wen's user avatar
  • 9
0 votes
1 answer
927 views

Child View Controllers in Page View Controller Failing to Receive Delegate Calls

I am having an issue with my two child view controllers inside a parent PageViewController, where a delegate called by one of the children is not received by the other child. My first child contains ...
Anthony's user avatar
  • 133
1 vote
0 answers
169 views

Passing data from ContainerView to UIPageViewController and then it's connected ViewController

I've been hitting my head on this for couple of days. My goal is to create an app that has a container view connected to a UIPageViewController such that I can display pages of different data/views. (...
app4g's user avatar
  • 800
2 votes
1 answer
1k views

SwiftUI: stuck on infinite page view implementation

I'm trying to create a PageView in pure SwiftUI. There's my test code below. And everything works as expected but the DragGesture. It just doesn't call 'onEnded' function. Never. How can I fix it? ...
Vitalii Vashchenko's user avatar
0 votes
0 answers
36 views

When I set transitionStyle: .scroll for UIPageViewController, and returning from another slide the old data is pulled [duplicate]

When I set transitionStyle: .scroll for UIPageViewController, I get a bug in the following steps: Run the application, click on the button, set the number 10, click "OK" Swipe forward Swipe ...
Мария G's user avatar
-1 votes
1 answer
728 views

How to increase selected dot in UIPageControl. (iOS 12.4, not duplicate)

Please do not report this question. This question are not similar with another questions about UIPageController!!! Stop flag. Read carefully. I find a lot of other question about UIPageControl. But ...
Sergey Udalov's user avatar
-1 votes
1 answer
226 views

Unable to center UIView inside UIPageViewController

I'm having problems centering horizontally a view inside a UIPageViewController. My ViewController contains a UIView with the following constraints: Height 400 20 Align Leading to SafeArea 20 Align ...
daydr3am3r's user avatar
0 votes
2 answers
422 views

UIPageViewController show the wrong page after adding third page

in my project I have a UIPageViewController that user can add new pages to it(it start with one page). every time user add new page UIPageViewController must show the current page(the user must be in ...
behrad's user avatar
  • 616
1 vote
0 answers
272 views

Large title doesn't collapse in UIPageViewController with scroll transition style

I have a UIPageViewController that holds an array of UITableViewController. I did set navigationController?.navigationBar.prefersLargeTitles = true. When I scroll the table to the top, the title of ...
Scarabocchio's user avatar
0 votes
2 answers
1k views

Remove child view controller

I have the following code: func setUpPageController(viewControllers: [UIViewController]) { let pagingViewController = PagingViewController(viewControllers: viewControllers) ...
Casse Nhari's user avatar
0 votes
0 answers
230 views

Why does a swipe gesture stop advancing paged view controller after opening and closing side menu?

My app, written in SwiftUI 2.0, is based on a UIPageViewController which displays four panels, in the common onboarding style. The user can swipe through them, or advance them using an arrow button at ...
Steven Hovater's user avatar
0 votes
1 answer
395 views

How do I get vertical swipes in a page view controller

I want a user to normally be able to swipe right to left through the pages of the page view controller, but I also want the user to swipe up on a page to save the content of that page. So far I have ...
coderodur's user avatar
1 vote
1 answer
368 views

How can I change background color of PageViewController?

How can I change the background color of the area that is white? I used UIViewControllerRepresentable but I don't know how to change the color of UIViewControllers. I guess I need to change the ...
Ufuk Köşker's user avatar
1 vote
1 answer
312 views

How to add a responsive UIPageViewController inside an UIStackView programmatically?

I am trying to place an UIPageViewController inside a UIView with no predetermined height. What I am trying to achieve is build a responsive In-app Message that has one or more components (buttons, ...
rgoldenb's user avatar
0 votes
1 answer
117 views

How do I display an alert over a PageViewController after a popover dismissal?

I have a a VC structure like this UIPageViewController -> detailViewController -> popoverviewcontroller The popoverviewcontroller is dismissed using an unwind segue, bringing us back to the ...
Malachi Holden's user avatar
1 vote
0 answers
109 views

When running WKWebView with PageViewController, the swipe does not work

enter image description here (Please refer to the image above.) I want to create and swipe WKWebView for each of the three Xib files. However, when WKWebView is running, the swipe is not working, and ...
Hee's user avatar
  • 11
0 votes
1 answer
461 views

Swift make custom class on UiPageController to hold text as Indicator

so i was wondering is it possible to use page controller in swift but rather having dots as an indicator of each page, i can change it into string so its like a title rather than just a dots? and i ...
afi permana's user avatar
1 vote
0 answers
86 views

Collapse large header with pagecontroller

I currently have a viewcontroller with a large header, set with self.navigationController?.navigationBar.prefersLargeTitles = true. In this viewcontroller I have a container with a ...
tmiedema's user avatar
  • 176
0 votes
1 answer
195 views

How to automatically update a label on a viewcontroller from another viewcontroller while using a UIpageviewcontroller to navigate pages

I am currently using a UIPageviewcontroller to navigate between my 3 main viewcontrollers. I have a global variable that I set on the first page using a stepper. The value of that global variable is ...
HelpMeCode17's user avatar
0 votes
1 answer
510 views

Swift UIPageViewController - for the requested spine location (UIPageViewControllerSpineLocationMin)

Here I Created UIPageViewController by programmatically. When I load more than one ViewController to UIPageViewController. App crashed. Check my code below. class PageVC: UIPageViewController { ...
Kathiresan Murugan's user avatar
1 vote
0 answers
159 views

Continuous scrolling between two UIPageControllers

I am trying to achieve a continuous scrolling in the following situation: MainViewController (UIViewController) contains an instance of UIPageViewController (transitionStyle: .scroll) which manages ...
MohamMad Salah's user avatar
4 votes
0 answers
846 views

Crash while calling setViewControllers(direction:animated:completion:) multiple times

I have index-based custom UIPageViewController in which I try to implement a move method that show next or previous page. Most answers on SO told that only way to set current page programmatically is ...
RareScrap's user avatar
  • 564
0 votes
0 answers
158 views

Swift UIPageViewController Disable ScrollView Bounces Attribute (Seems Buggy) for First and Last Controller

I have a class that subclasses UIPageViewController which contains 4 view controllers. I am trying to figure out why the below code randomly stops the UIPageViewController from scrolling as I try to ...
Wael's user avatar
  • 503
2 votes
2 answers
1k views

UIPageViewController - Detect scrolling halfway into the next view controller (almost working) to change button color?

I have a class that subclasses a UIPageViewController that which contains 4 controllers, I am trying to figure out how I can change color of the button as I scroll halfway to the second view ...
Wael's user avatar
  • 503
1 vote
0 answers
73 views

Nested UIPageViewController

I maintain two instances of UIPageViewController inside my App as follows: Outer UIPageViewController (Horizontal) Controller A (UIViewController) Controller B (UIViewController) Inner ...
MohamMad Salah's user avatar
0 votes
1 answer
197 views

CollectionView Drag and Drop when embedded in PageViewController

When using drag and drop with a UICollectionView embedded in a UIPageViewController, the delegate immediately triggers didExit when paging. Begin Drag and Drop gesture Page to new view ...
hidden-username's user avatar
0 votes
1 answer
50 views

UIPageViewController jump directly to page causes issues with instance variables

I'm rather new to Swift, having coded in JavaScript so much more, so I must be missing something subtle here. I have a UIPageViewController that controls 3 pages, and each page has a particular ...
Nejisan's user avatar
0 votes
2 answers
639 views

Create an infinite looping UIPageViewController

I'm trying to create a page view controller that once you reach the last screen (right swiping) it starts over at the first, and if you scroll backward, once it hits the first screen (left swiping) it ...
SwiftyJD's user avatar
  • 5,331
-2 votes
1 answer
621 views

UIPageViewController' s Child View Controller has wrong lifecycle

When i close to UiPageVC, after UiPageVC's viewWillDisappear call, ChildVC's viewWillAppear and viewDidAppear function calls. At the end, UiPageVC's viewDidDisappear works. I need to work ChildVC like ...
Talat Eryılmaz's user avatar
0 votes
2 answers
294 views

How to read value of parent ViewController in swift

I have a ViewController that has an embed in PageViewController. The page ViewController of course instantiate two more viewControllers that displays content. My problem is that the two instantiated ...
Rob B's user avatar
  • 1,279
26 votes
1 answer
5k views

Show partial previous and next item on PageTabViewStyle (SwiftUI 2.0) or PageViewController/PageView (with UIKit interface)

I am working with SwiftUI 2.0 and actually, I am happy that Apple introduced PageTabViewStyle to simply create a pager. But unfortunately, I am not able to implement it in a way I would like to. Is it ...
Sebastian Fox's user avatar
0 votes
2 answers
92 views

Pass value from child view page to Pageview controller in swift

I am android developer and pretty new to iOS. I have a pageView Controller say A. It is connected to three child View Controller. I want to get back a value from child View Controller back to Root ...
hitesh's user avatar
  • 378
0 votes
0 answers
133 views

Animate through multiple pages with UIPageViewController?

I am using UIPageViewController to create a horizontal list of pages. I want to have a button that will cause a transition to a specific page. I can do this by using setViewControllers. ...
Jody's user avatar
  • 55
2 votes
1 answer
835 views

SwiftUI - trying to identify and pass the value of the list item being selected

I'm following the Apple Developer tutorial on interfacing with UIKIt The only real difference is that that I'm trying to call PageView<Page:View> { from a NavigationLink. The example code ...
BobdeBloke's user avatar
1 vote
1 answer
1k views

UIPageViewController stops working after 1 swipe in SwiftUI

I was following the Apple tutorial for SwiftUI and under 'Interfacing with UIKit' (https://developer.apple.com/tutorials/swiftui/interfacing-with-uikit) we were made to make a UIPageController. In ...
rayaantaneja's user avatar
  • 1,589
2 votes
1 answer
786 views

Running out of memory using images and PageView with SwiftUI

I am writing an app that shows users large pictures that they can flick through and zoom in, similar to the photos app or a book. I am trying to write this with SwiftUI. I have been following the ...
RoryM's user avatar
  • 145
2 votes
1 answer
1k views

Embed PageViewController in ScrollView - Programmatically Swift 5

I have a PageViewController which shows 4 four view Controllers horizontally, Can I embed all this viewControllers in a UIScrollView? It would be easier to manage some tasks. Till now I tried doing ...
user avatar
3 votes
1 answer
860 views

SwiftUI send action from a page to the PageViewController

I have set up a PageViewController in SwiftUI, following the known Tutorial Interfacing with UIKit, with UIViewControllerRepresentable etc. My array of controllers consists of simple SwiftUI views. I ...
Mundi's user avatar
  • 80.1k

1
2
3 4 5
42