Comments (3)
Hi Riyan,
Hmmm I think the issue might be because of this line:
Let controller = AsdViewController()
When instantiating a View Controller from a storyboard you need to do something like this:
Let controller = storyboard.insantiateViewControllerWithIdentifier("asdViewController")
My syntax is probably wrong, but you get the idea :)
from presentr.
let storyboard = UIStoryboard(name: "MyStoryboard", bundle: nil)
let controller = storyboard.instantiateViewControllerWithIdentifier("asdViewController")
It works like a charm. Thank you so much, Danlozano!
from presentr.
YES, you're welcome!
If the View Controller you are currently on is in the storyboard, you can just call on the included property on the View Controller self.storyboard , but if you are outside a storyboard you first have to get the storyboard, like you did so in your comment.
Good luck, thanks for using Presentr!
from presentr.
Related Issues (20)
- Please let me know when v 2 comes out
- Need elastic resistance when swiping in opposite direction to dismiss
- White background behind navigation bar HOT 1
- Popup with compress keyboard translation type on X/XS/XS Max
- ViewController not showing in real device iPhone Xs
- How to display over tabs?
- How to manage safe area constraints on presented view controller during interactive presentation? HOT 3
- How to present a controller by giving some margin from Y axis?
- delegate for onDismiss? HOT 1
- Alert view disappear when i use Swift5 in Example project HOT 1
- Expand View Controller to Full Screen
- Swift Package Manager Support HOT 2
- Manual Installation Not Working HOT 1
- [Xcode 11] [iOS 13] Present view with presentationType .fullScreen shows black background
- Displaying presentr view over animating view behind causes full screen HOT 1
- Presentr with Coordinator HOT 3
- [Touch] unexpected nil HOT 1
- `dismissTransitionType` set `.crossDissolve` no effect HOT 2
- Controller Moves up
- wish to be smarter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from presentr.