All Projects → soffes → Gradientview

soffes / Gradientview

Licence: mit
Easily use gradients in UIKit for iOS & tvOS

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Gradientview

Googlereporter
Easily integrate with Google Analytics in your iOS app
Stars: ✭ 479 (-21.48%)
Mutual labels:  tvos, cocoapods, carthage
Jgprogresshud
An elegant and simple progress HUD for iOS and tvOS, compatible with Swift and ObjC.
Stars: ✭ 3,110 (+409.84%)
Mutual labels:  tvos, cocoapods, carthage
Amplitude Ios
Native iOS/tvOS/macOS SDK
Stars: ✭ 216 (-64.59%)
Mutual labels:  tvos, cocoapods, carthage
L10n Swift
Localization of the application with ability to change language "on the fly" and support for plural form in any language.
Stars: ✭ 177 (-70.98%)
Mutual labels:  tvos, cocoapods, carthage
Anim
Swift animation library for iOS, tvOS and macOS.
Stars: ✭ 520 (-14.75%)
Mutual labels:  tvos, cocoapods, carthage
Iso8601
ISO8601 date parser and writer
Stars: ✭ 213 (-65.08%)
Mutual labels:  tvos, cocoapods, carthage
Audioindicatorbars
AIB indicates for your app users which audio is playing. Just like the Podcasts app.
Stars: ✭ 279 (-54.26%)
Mutual labels:  tvos, cocoapods, carthage
Color
Color utilities for macOS, iOS, tvOS, and watchOS
Stars: ✭ 145 (-76.23%)
Mutual labels:  tvos, cocoapods, carthage
Misterfusion
MisterFusion is Swift DSL for AutoLayout. It is the extremely clear, but concise syntax, in addition, can be used in both Swift and Objective-C. Support Safe Area and Size Class.
Stars: ✭ 314 (-48.52%)
Mutual labels:  tvos, cocoapods, carthage
Functionkit
A framework for functional types and operations designed to fit naturally into Swift.
Stars: ✭ 302 (-50.49%)
Mutual labels:  tvos, cocoapods, carthage
Cocoalumberjack
A fast & simple, yet powerful & flexible logging framework for Mac and iOS
Stars: ✭ 12,584 (+1962.95%)
Mutual labels:  tvos, cocoapods, carthage
Swiftframeworktemplate
A template for new Swift iOS / macOS / tvOS / watchOS Framework project ready with travis-ci, cocoapods, Carthage, SwiftPM and a Readme file
Stars: ✭ 527 (-13.61%)
Mutual labels:  tvos, cocoapods, carthage
Svprogresshud
A clean and lightweight progress HUD for your iOS and tvOS app.
Stars: ✭ 12,339 (+1922.79%)
Mutual labels:  tvos, cocoapods, carthage
Theanimation
Type-safe CAAnimation wrapper. It makes preventing to set wrong type values.
Stars: ✭ 214 (-64.92%)
Mutual labels:  tvos, cocoapods, carthage
Cdmarkdownkit
An extensive Swift framework providing simple and customizable markdown parsing.
Stars: ✭ 158 (-74.1%)
Mutual labels:  tvos, cocoapods, carthage
Datez
📆 Breeze through Date, DateComponents, and TimeInterval with Swift!
Stars: ✭ 254 (-58.36%)
Mutual labels:  tvos, cocoapods, carthage
Contentful.swift
A delightful Swift interface to Contentful's content delivery API.
Stars: ✭ 132 (-78.36%)
Mutual labels:  tvos, cocoapods, carthage
Ducttape
📦 KeyPath dynamicMemberLookup based syntax sugar for Swift.
Stars: ✭ 138 (-77.38%)
Mutual labels:  tvos, cocoapods, carthage
Web3.swift
A pure swift Ethereum Web3 library
Stars: ✭ 295 (-51.64%)
Mutual labels:  tvos, cocoapods, carthage
Xcglogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
Stars: ✭ 3,710 (+508.2%)
Mutual labels:  tvos, cocoapods, carthage

Gradient View

Easily use gradients in UIKit. Gradient View is a simple UIView wrapper around CGGradient.

Version Carthage compatible CocoaPods compatible

Usage

// Initialize a gradient view
let gradientView = GradientView(frame: CGRect(x: 20, y: 20, width: 280, height: 280))

// Set the gradient colors
gradientView.colors = [.green, .yellow]

// Optionally set some locations
gradientView.locations = [0.8, 1.0]

// Optionally change the direction. The default is vertical.
gradientView.direction = .horizontal

// Add some borders too if you want
gradientView.topBorderColor = .red
gradientView.bottomBorderColor = .blue

// Add it as a subview in all of its awesome
view.addSubview(gradientView)

See the source for full documentation.

Example

Screenshot 1 Screenshot 2

Open up the included Xcode project for an example app.

Installation

Gradient View supports installation with Carthage or CocoaPods. You can also simply add GradientView.swift to your project if you’d prefer.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].