Latest 0.1.0
Homepage https://github.com/aly23/FooterLinker
License MIT
Platforms ios 9.0
Authors

Version
License
Platform

This resolve a common issue that affects the footer of a tableView:

  • must be anchored to the bottom of the page if the content of table is smaller than the page height
  • scrolls with the tableView if the content is larger than the page height
  • stretch following the bounce of the table view

Demo

FooterLinkerMore demo
FooterLinkerLess demo

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 9.0, Swift 4.

Installation

FooterLinker is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'FooterLinker'

Usage

  1. Create a table view and a footer view in your view controller storyboard.
  2. The bottom constraint of the footer and the table view must be linked.

FooterLinker storyboard example

  1. FooterLinker must be strong retained by the view controller. To initialize and setup it just use this simple line of code:
FooterLinker(scrollView: tableView, footerView: footerView)

Author

Alice Migliorati, [email protected]

License

FooterLinker is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "FooterLinker",
    "version": "0.1.0",
    "summary": "An object that anchor footer to table or scrolling with it.",
    "homepage": "https://github.com/aly23/FooterLinker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Alice Migliorati": "[email protected]"
    },
    "source": {
        "git": "https://github.com/aly23/FooterLinker.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.0",
    "source_files": "FooterLinker/Classes/**/*"
}

Pin It on Pinterest

Share This