qhu91it / OTResizableView

OTResizableView is a UIView library that can be resized with fingers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OTResizableView

Description

OTResizableView is a UIView library that can be resized with fingers.

Features

・Resize

・Keep aspect resize

・Move

・Change color

Demo

OTResizableVIewDemo.gif

Usage

import OTResizableView

let resizableView = OTResizableView(contentView: yourView)
resizableView.delegate = self;
        
// If you want to change resizableView colors, you can customize here.

view.addSubview(resizableView)

Install

CocoaPods

Add this to your Podfile.

pod 'OTResizableView'

Carthage

Add this to your Cartfile.

github "PKPK-Carnage/OTResizableView"

Swift Package Manager

  1. Select Xcode -> File -> Swift Packages -> Add Package Dependency...
  2. Enter https://github.com/qhu91it/OTResizableView.git.
  3. Click Next, then select branch master, complete.

Help

If you want to support this framework, you can do these things.

  • Please let us know if you have any requests for me.

    I will do my best to live up to your expectations.

  • You can make contribute code, issues and pull requests.

    I promise to confirm them.

Licence

MIT

Author

PKPK-Carnage🦎

About

OTResizableView is a UIView library that can be resized with fingers.

License:MIT License


Languages

Language:Swift 96.7%Language:Ruby 1.8%Language:Objective-C 1.5%