A Swift library for generating attractive random colors with customizable hue and luminosity options.
Random Color Swift is a Swift library that generates attractive random colors for iOS and macOS applications. It provides developers with an easy-to-use API for creating visually pleasing color palettes with customizable hue and luminosity options. The library is a direct port of the popular randomColor.js JavaScript library, bringing the same functionality to the Swift ecosystem.
iOS and macOS developers who need to generate random colors for UI components, data visualizations, or creative applications. It's particularly useful for designers and developers working on apps that require dynamic color schemes or palette generation.
Developers choose Random Color Swift because it generates aesthetically pleasing colors by default, avoiding harsh or clashing combinations. Unlike basic random color generators, it offers fine-grained control through hue and luminosity parameters while maintaining a simple, intuitive API that works seamlessly with Swift's UIKit and AppKit frameworks.
An attractive color generator for Swift. Ported from randomColor.js.
Generates visually appealing colors by default, avoiding harsh combinations as emphasized in its philosophy of prioritizing simplicity and aesthetic quality.
Offers customizable hue ranges (e.g., .red, .blue) and luminosity levels (e.g., .light, .dark), enabling precise output as demonstrated in the README examples.
Supports multiple dependency managers including Swift Package Manager, CocoaPods, and Carthage, with clear setup instructions for various project types.
Works seamlessly with both UIColor for iOS and NSColor for macOS, ensuring consistent color generation across Apple ecosystems as stated in the key features.
Only provides basic hue and luminosity control, lacking advanced options like saturation adjustment or color space conversions that comprehensive color libraries offer.
Requires manual file addition for iOS 7.x support, which is cumbersome and outdated for modern development workflows, as noted in the installation section.
As a port of randomColor.js, it may lag behind updates or miss features from the original JavaScript library, limiting innovation and ecosystem growth.
:art: Hue is the all-in-one coloring utility that you'll ever need.
A beautiful set of predefined colors and a set of color methods to make your iOS/OSX development life easier.
Yet another extension to manipulate colors easily in Swift and SwiftUI
Convenience methods for creating color using RGBA hex string.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.