darrarski/scrollviewcontroller
Wraps your custom view and presents it on the screen in the way it fills visible area (not covered by navigation bar, keyboard etc.). If your custom view is too big, you will be able to scroll the content thanks to embedded UIScrollView.
Install
Minimum deployment target: iOS 10.0 (on iOS >= 11 uses Safe Area Layout for iPhone X compatibility).
Last version developed using Swift 4.2 is v1.0.12.
Swift Package Manager
ScrollViewController is compatible with Swift Package Manager. You can add it as a dependency to your Xcode project or swift package.
CocoaPods
You can integrate ScrollViewController with your project using CocoaPods. Just add this line to your Podfile:
pod 'ScrollViewController', '~> 1.3'Carthage
You can also use Carthage if you prefer by adding following line to your Cartfile:
github "darrarski/ScrollViewController" ~> 1.3Use
Example can be found in DemoApp.
TL;DR
let yourContentView: UIView
let scrollViewController = ScrollViewController()
scrollViewController.contentView = yourContentViewDevelop
Requirements:
To bootstrap the project run:
bundle installThen open ScrollViewController.xcodeproj in Xcode.
Use DemoApp build scheme for building and runing demo app.
Use Tests build scheme for runing tests.
To lint the pod run:
bundle exec pod lib lint --allow-warningsTo deploy the pod run:
bundle exec pod trunk push --allow-warnings☕️ Do you like the project?
<a href="https://www.buymeacoffee.com/darrarski" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" height="60" width="217" style="height: 60px !important;width: 217px !important;" ></a>
License
Copyright © 2022 Dariusz Rybicki Darrarski
Package Metadata
Repository: darrarski/scrollviewcontroller
Default branch: master
README: README.md