I want to do this:I push or present a viewcontroller called B, the previous viewcontroller called A, but B won't cover full screen, it's 3/4 width of screen's width,the left 1/4 width of A turns dark,when I tap this area,B can be dismissed,is this possible? Appreciate for your suggestions!
Push/Present a viewcontroller from right,the viewcontroller cover 3/4 part of previous viewcontroller
116 views Asked by John At
2
There are 2 answers
1
Sachin
On
Why don't you try out some open source libraries to achieve this. The best library that I have come across is SWRevealViewController
There is a TUTORIAL on AppCoda featuring this library. Check that out for more info.
FYI,
If you still prefer a DIY approach, take a look at this.
Related Questions in IOS
- URLSession requesting JSON array from server not working
- Incorrect display of LinearGradientBrush in IOS
- Module not found when building flutter app for IOS
- How to share metadata of an audio url file to a WhatsApp conversation with friends
- Occasional crash at NSURLSessionDataTask dataTaskWithRequest:completionHandler:
- Expo Deep linking on iOS is not working (because of Google sign-in?)
- On iOS, the keyboard does not offer a 6-character SMS code
- Hi, there is an error happened when I build my flutter app, after I'm installing firebase packages occurs that error
- The copy/paste functionalities don't work only on iOS in the Flutter app
- Hide LiveActivityIntent Button from Shortcuts App
- While Running Github Actions Pipeline: No Signing Certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID
- Actionable notification api call not working in background
- Accessibility : Full keyboard access with scroll view in swiftui
- There is a problem with the request entity - You are not allowed to create 'iOS' profile with App ID 'XXXX'
- I am getting "binding has not yet been initialized" error when trying to connect firebase with flutter
Related Questions in UINAVIGATIONCONTROLLER
- Navigation Controller not working after adding Tabbar controller
- Open View When Notification Tapped
- Present UIViewController using sheetPresentationController inside UINavigationController
- Navigating two times from landscape to portrait
- Swift arabic version, delaying happening after click back or push a view controller, in the navigation bar
- iOS 17 - SwiftUI push navigation animations start breaking
- performSegue() works to show (push) either of two UIViewControllers, but one has nil navigationController
- hidesBottomBarWhenPushed is not working when using UIPageViewController swift
- iOS UITableView content goes under UINavigationBar weird bug when inputAccessoryView containing UITextView shows keyboard
- UINavigationController glitchy animation when pushing new view controller
- passing date value in navigation-compose
- why navigationbar is overlapping the view which is below of it when dragging?
- iOS UINavigationController How to push view controller from left to right when showing right to left languages
- Converting my smartwatch into a compass for my bike as a accessory
- UiNavigationController - title in navigation bar is off-center when right side has 2 buttons
Related Questions in PUSH
- How to combine JSON objects and unnest array of arrays
- Almost empty git repo has huge size
- How to add the outout the random element from array and keep adding 1 by 1 in empty array?
- Unable to push changes via git behind Proxy with Heroku
- How to enable a PR originating from a forked repo to cause a GitHub workflow to push to a branch (gh-pages) in the original repo?
- Asset validation error on App Store upload
- Copy project files in path and projects in child subgroups
- Extra files included in push e.g. settings.py
- How to fix this issue with git push?
- Can images be blocked from being pushed to Harbor based on the number of artifacts for that image?
- How do I push a file into its subfolder in git repository?
- iOS - React-Native - Click on Push does not render the App
- Created a stack and the push() method is not working
- issue on pushing refs on Git repository
- Eclipse IDE can't Commit & Push to GitHub
Related Questions in PRESENTVIEWCONTROLLER
- How to present a view in didReceiveRemoteNotification?
- why preferredContentSize doesn't work when presenting UIViewController with PresentationStyle = .formSheet
- Swift: Trying to dismiss the presentation controller while transitioning already
- Navigation between two VIPER Routers doesn't work unless I dismiss
- Custom present transition for 2 nested view controllers with 2 simultaneous animations?
- Navigation controller issue after presenting a view controller
- UIView which is added as subview in UIWindow is not visible in the presented view controller
- How do I show a new/additional NSViewController in swift macOS App with no modal
- How do you dismiss the previous view controller or a controller that I want from another view controller?
- Interactive background (presenting) view controller when presenting pageSheet
- Display Transparent View on Top of Default Numeric Keyboard
- Show WebView ViewController through the xib View
- Make custom-triggered UIColorPickerViewController hug bottom of screen?
- Swift storyboard cross dissolve transition flashes different view controller
- Presenting a ViewController based on previous selected TableView Cell (Programmatically, no Storyboard)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Select the view controller in Storyboard. Goto Attributes Inspector -> Simulated Metrics -> Size -> freeform
Change the width of the B view controller to whatever you want.