SkillAgentSearch skills...

Fluorine

A small UIView helper to create simple linear gradients

Install / Use

/learn @UnlockAgency/Fluorine
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Fluorine

Fluorine is part of the E-sites iOS Suite.


A small UIView helper to create simple linear gradients.

forthebadge forthebadge

Platform CocoaPods Compatible Quality Travis-ci

Installation

Podfile:

pod 'Fluorine'

And then

pod install

Implementation

The following code will make 4 gradient views:
Screenshot

let view1 = Fluorine.View(frame: CGRect(x: 50, y: 50, width: 100, height: 100))
self.view.addSubview(view1)

let view2 = Fluorine.View(frame: CGRect(x: 160, y: 50, width: 100, height: 100))
view2.colors = [ UIColor.red, UIColor.green, UIColor.blue ]
self.view.addSubview(view2)

let view3 = Fluorine.View(frame: CGRect(x: 270, y: 50, width: 100, height: 100))
view3.colors = [ UIColor.orange, UIColor.black ]
view3.point = Fluorine.Point(start: CGPoint.zero, end: CGPoint(x: 1, y: 1))
self.view.addSubview(view3)

let view4 = Fluorine.View(frame: CGRect(x: 380, y: 50, width: 100, height: 100))
view4.colors = [ UIColor.red, UIColor.blue ]
view4.locations = [ 0.5, 1 ]
self.view.addSubview(view4)

Related Skills

View on GitHub
GitHub Stars5
CategoryDevelopment
Updated7mo ago
Forks1

Languages

Swift

Security Score

77/100

Audited on Aug 5, 2025

No findings