soffes / gradientview Goto Github PK
View Code? Open in Web Editor NEWEasily use gradients in UIKit for iOS & tvOS
License: MIT License
Easily use gradients in UIKit for iOS & tvOS
License: MIT License
Any Swift 4 release coming up?
Is there any way to add opacity to the view?
Im trying to do a white-clear gradient, but the result appears to be white-black gradient.
Hey, my project slowed down a lot recently (2 minutes build time) and I was able to pretty much pin it down to GradientView. If I make my view a normal UIView, it builds within seconds.
Anyone else experiencing this?
First Awesome work!, now can be added a new feature for diagonal linear gradients?
After adding GradientView plugin, often my storyboard is not repainting. Sometimes it doesn't paint anything on screen. I have to close the xcode and reopen for it to refresh.
Removing the @IBDesignable
for GradientView
seems to have stop the issue.
For some reason the gradient does not work as soon as I display an UIAlertView on top of it. Any ideas?
#Got the massage
[!] The platform of the target AppTarget
(iOS 10.0) is not compatible with GradientView (2.3.2)
, which does not support ios
.
I suppose, something is wrong with namings in .xcscheme in this commit , because 2.3.1. works for me.
Meaning sending white, then say red as your colors you end up with a greyscale gradient instead of white->red
Line in question:
https://github.com/soffes/GradientView/blob/master/GradientView/GradientView.swift#L199
UIGraphicsGetCurrentContext and CGColorSpaceCreateDeviceRGB returns optional values
change line 135 to
guard let context = UIGraphicsGetCurrentContext() else { return }
and line 212 to
guard let cgColorSpace = CGColorGetColorSpace(cgColor) else { return }
or similar
I'm unable to install the library using CocoaPods, here is the command output:
Richards-MacBook-Pro:Proto richard$ pod install
Analyzing dependencies
[!] The platform of the target `Proto` (iOS 11) is not compatible with `GradientView (2.3.2)`, which does not support `ios`.
[!] Automatically assigning platform `ios` with version `11` on target `Proto` because no platform was specified. Please specify a platform for this target in your Podfile. See `https://guides.cocoapods.org/syntax/podfile.html#platform`.
Im trying to achieve a certain style with the radial gradient.
Is there anyway to do hard color stops instead of blending so I can get an effect like this
Thanks
Pod GradientView hasn't source code changes performed at commit "Upgrade for Xcode 10 and Swift 4.2" (e329cea#diff-69db45e24338624ff910c00d92e8546f).
So Swift Compiler Error is produced at GradientView.swift at line 202: "Using '!' is not allowed here; perhaps '?' was intended?"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.