Coder Social home page Coder Social logo

multinerd-forks / grview Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ahmed-komsan/grview

0.0 1.0 0.0 212 KB

UIView and other UIKit elements with a gradient and other attributes for IOS

License: MIT License

Ruby 8.82% Objective-C 5.47% Swift 85.71%

grview's Introduction

GRView

UIView and other UIKit elements with a gradient and other customizable properties (gradient,shadow color,corner raduis...etc.) GRView exposes many properties you can modify to customize your view or button to add gradient layer ,shadow color ,corner raduis , ... etc. GRView Classes is a @IBDesignable class so that it's rendered in your storyboard, and all its properties are @IBInspectable so that you can customize your gradient inside the storyboard in the attributes inspector.

Swift version: 4.0 CocoaPods: 2.5 Carthage compatible

Requirements

GRView is written in Swift 4. iOS 8.0+ Required

Installation

CocoaPods

CocoaPods is the preferred way to install this library. Add this command to your Podfile:

pod 'GRView'

Carthage

To install using Carthage, add the following line to your Cartfile:

github "Ahmed-Komsan/GRView" ~> 1.0.0

Direct Installation

Download .zip file and extract it. There you will find the GradientView folder, just copy and add it to your respective project.

Usage

Storyboard/Xib

while assigning GRView to UIView / other UIKit element on StoryBoard/Xib don't forget to select module (if downloaded by pod)

Programmatically

let grView = GRView(frame: view.bounds)
grView.startColor = UIColor(red: 0.7, green: 1.0, blue: 0.7, alpha: 1.0)
grView.endColor = UIColor(red: 0.1, green: 1.0, blue: 0.7, alpha: 1.0)
view.insertSubview(grView, at: 0)
        

To-do

  • Add like-instagram animation
  • Allow more than two colors to create gradients.
  • Add more UIKit elements with gradient and properties.
  • Add blur effect.

Author

Ahmed Komsan, [email protected] If you found any problem please create issue or pull request to help me improve this open source project. also you can suggest features/attributes to add , am listening :)

License

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

grview's People

Contributors

ahmed-komsan avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.