Skip to content

Colour fetching for UIImage to find the most dominant colour.

License

Notifications You must be signed in to change notification settings

ca13ra1/UIImageColour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Platforms

UIImageColour

Colour fetching for UIImage to find the most dominant colour. This was inspired by jathu's UIImageColors.

PREVIEW

Example

let image = UIImage(named: "")

if let uiImageColour = image.analyzeImage() {
    let primaryColour = uiImageColour.dominantColor
} else {
    print("Failed to analyze the image.")
}

Installation

Swift Package Manager

  • File > Swift Packages > Add Package Dependency
  • Add https://github.com/ca13ra1/UIImageColour.git

License

LICENSE

About

Colour fetching for UIImage to find the most dominant colour.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages