This demo provides Introduction screens in scrollview manner usually used at the startup of application. It manages dynamic views based on input images.
- iOS Support
- Demo
- Features
- Getting started
- Usage
- Methods
- Want to Contribute?
- Need Help / Support?
- Collection of Components
- Changelog
- License
- Keywords
Versions: iOS 12, iOS 13
We have tested our program in above versions, however you can use it in other versions as well.
- Introduction Screen demo app uses Scrollview and UIPageControl with Skip feature.
- This is a reusable component and you can add it in your iOS application.
Download this project and import 'App_Startup_gallery' folder contents in your project.
- Make sure 'Images' folder should be added as 'group by reference' in your sample project.
- Setup below configuration in your root viewcontroller
e.g.
let storyboard = UIStoryboard(name: "AppStartUp", bundle: nil)
let secondVC = storyboard.instantiateViewController(identifier: "StartupGallery")
e.g.
let fm = FileManager.default
let path = Bundle.main.resourcePath!
print(path)
do{
let item = try fm.contentsOfDirectory(atPath: path).filter{$0.lowercased().hasSuffix(".png") || $0.lowercased().hasSuffix(".jpg")}
arrImages.removeAll()
for imgs in item{
print(imgs)
arrImages.append(UIImage(named:imgs)!)
print(arrImages)
}
}catch let e{
print("error : \(e)")
}
e.g.
func loadScrollView()
e.g.
func scrollViewDidEndDecelerating(_ scrollView: UIScrollView) {
}
e.g.
self.pageControl.addTarget(self, action: #selector(self.pageChanged(sender:)), for: UIControl.Event.valueChanged)
@objc func pageChanged(sender:AnyObject)
{
let xVal = CGFloat(pageControl.currentPage) * imgScrollView.frame.size.width
imgScrollView.setContentOffset(CGPoint(x: xVal, y: 0), animated: true)
}
- Created something awesome, made this code better, added some functionality, or whatever (this is the hardest part).
- Fork it.
- Create new branch to contribute your changes.
- Commit all your changes to your branch.
- Submit a pull request.
We also provide a free, basic support for all users who want to use this Intro Screens demo in project. In case you want to customize this code library to suit your development needs, then feel free to contact our iOS developers.
We have built many other components and free resources for software development in various programming languages. Kindly click here to view our Free Resources for Software Development.
Detailed changes for each release are documented in CHANGELOG.
App Introduction pages, Startup pages, Introduction screens, ScrollView images, PageControl gallery.