Latest 2.0.2
Homepage https://github.com/seanmcneil/Freeze
License MIT
Platforms ios 9.3
Authors

CI Status
Version
License
Platform
CocoaPods

What it does

Freeze is a simple method you call against any tableView in your project that determines whether or not it exceeds the bounds of the screen. If it does not, it will lock the table so that it does not scroll.

Requirements

  • iOS 9.3+
  • Xcode 8.x (1.1)
  • Xcode 9.x (2.x)
  • Swift 3.x (Version 1.1)
  • Swift 4.x (Version 2.x)

Installation

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

pod "Freeze"

Instructions

Import the framework:

import Freeze

It is recommended that you call this method as seen outlined below:

override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)

    tableView.shouldLock()
}

override func viewWillTransition(to size: CGSize,
    with coordinator: UIViewControllerTransitionCoordinator) {
    super.viewWillTransition(to: size, with: coordinator)

    tableView.shouldLock()
}

Changelog

Changelog | See the changes introduced in each version.

Author

Sean McNeil, [email protected]

License

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

Latest podspec

{
    "name": "Freeze",
    "version": "2.0.2",
    "summary": "Prevents tableViews from scrolling when they don't need to.",
    "description": "This is a simple Swift based pod that can disable scrolling on a table when it does not exceed the bounds of its view.",
    "homepage": "https://github.com/seanmcneil/Freeze",
    "license": "MIT",
    "authors": {
        "Sean McNeil": ""
    },
    "source": {
        "git": "https://github.com/seanmcneil/Freeze.git",
        "tag": "2.0.2"
    },
    "social_media_url": "https://twitter.com/mcneil_sean",
    "platforms": {
        "ios": "9.3"
    },
    "source_files": "Freeze/Classes/**/*",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This