0

I am trying to run this code but I am getting an error saying Missing argument for parameter 'coder' in call If someone can help me fix this error.

For the full code please visit: https://github.com/aidev1065/WWDC2018_Scholarship_Submission-Accepted/blob/master/README.md

        let vc = PageViewController()
        vc.modalPresentationStyle = .formSheet
        present(vc, animated: true, completion: nil)
1
  • PageViewController does not confirm default initializer like () you should customize it in PageViewController (or you can create subclass) init() { } Commented Jul 16, 2019 at 12:44

1 Answer 1

1

In PageViewController class remove old method init and add new init

override init(transitionStyle style: UIPageViewController.TransitionStyle, navigationOrientation: UIPageViewController.NavigationOrientation, options: [UIPageViewController.OptionsKey : Any]? = nil) { super.init(transitionStyle: .scroll, navigationOrientation: .horizontal, options: options) }

and your problem will be solved

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.