shenglinFL / EmbeddedScrollView

Embedded UIScrollView for iOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EmbeddedScrollView

Add a vertical UIScrollView into another vertical UIScrollView for iOS. It makes users feel like it's a single UIScrollView. This tool resolve the gesture conflict between thw two UIScrollViews. It supports Swift and Objective-C

ezgif com-gif-maker

How to use EmbeddedScrollView

Just one line code to do it!

outerScrollView.embeddedScrollView = embeddedScrollView

The API is in an extension.

extension UIScrollView {

    @objc public var embeddedScrollView: UIScrollView?
}

How to integrate EmbeddedScrollView?

EmbeddedScrollView can be integrated by cocoapods.

pod 'EmbeddedScrollView'

Or use Swift Package Manager. SPM is supported from 1.1.0.

Requirements

  • iOS 10.0+
  • Xcode 11+
  • Swift 5.0+

About

Embedded UIScrollView for iOS.

License:MIT License


Languages

Language:Swift 61.2%Language:Ruby 23.6%Language:Objective-C 14.8%Language:C 0.4%