Swiftpack.co - trafi/SlideOutable as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by trafi.
trafi/SlideOutable 0.2.3
Swift component for sliding out and changing UIViewControllers easily.
⭐️ 3
🕓 3 years ago
iOS
.package(url: "https://github.com/trafi/SlideOutable.git", from: "0.2.3")

Swift Package Manager compatible Carthage compatible

SlideOutable

Swift component for sliding content above other views easily.

Usage

From code

As with any other view do these 3 steps:

let scroll = UITableView()
let header = UIView()
header.frame.size.height = 50 // header's `frame.size.height` should be set.
// `scroll` and `header` will be added and layed out inside `SlideOutable` instance.

// 1. Initialize
let slideOutable = SlideOutable(scroll: scroll, header: header)

// 2. Layout
slideOutable.frame = view.bounds
slideOutable.autoresizingMask = [.flexibleWidth, .flexibleHeight] // Or use constraints

// 3. Add to view hierarchy
view.addSubview(slideOutable)

From Interface Builder

See example project.

Installation

Swift Package Manager

Open your project in Xcode and select File > Swift Packages > Add Package Dependency. There enter https://github.com/trafi/SlideOutable as the repository URL.

Carthage

Using Carthage. Add the following line to your Cartfile:

github "Trafi/SlideOutable"

GitHub

link
Stars: 3
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

Swift Package Manager
4 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics