How to create Onboarding/WalkThrough/ App-intro screen like this swift 3

7.3k Views Asked by At

i want to create Onboarding / Walkthrough screens in swift but my screens are transparent , i need to create each image of this screens with transparent background or better way to do this , please tell me better way to this.First image,Second Image,Third Image,Fourth Image I want transparent background also. Suggest me better way for this.

1

There are 1 best solutions below

0
On

You can create an UIViewController with a UIScrollView and a pagination (scrollView pagination enabled and a pageControl). Your different tutorial views are defined inside each page in the scrollView.

the key part here is to set modalPresentationStyle of your modal controller to .overCurrentContext when you call it :

let VC = self.storyboard!.instantiateViewController(withIdentifier: "myViewController") as! MyViewController
VC.modalPresentationStyle = .overCurrentContext
VC.view.backgroundColor = UIColor(red: 0, green: 0, blue: 0, alpha: 0.2)
self.present(VC, animated: true, completion: nil)