Skip to content

GandaLF2006/Expandable-View

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

Expandable-View

Simple ExpandableView for iOS app.

Installation

Add this file to your project.

Usage

  1. You need to create a View object in your Storyboard and set its class to ExpandableView.
  2. Then create 2 UIView objects inside of it, create a height constraint for each and connect them as firstView and secondView. (This class creates aligns firstView and secondView to self with constraints. You should not add those.)

Done. You can tap your expandableView or use expand() and collapse() methods to change its state.

If you don't want to have any warning inside of your Interface Builder, you can add all constraints you need and set them to remove at build time.

TO-DO:

  • Easier setup
  • @IBDesignable

About

(Swift 3) Simple ExpandableView for UIKit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages