Difference between revisions of "SwiftUI - Working with Images"

From PeformIQ Wiki
Jump to navigation Jump to search
(Created page with "=Some Examples= == Basics == <pre> Image(systemName: "globe.fill") .foregroundColor(.green) </pre> == Colour Multiplication == <pre> Image("lion") .colorMultiply(.yellow) </pre> == Applying Colour Filters == <pre> Image("lion") .hueRotation(.degrees(30)) .saturation(0.6) .contrast(2) </pre> == Next == <pre> </pre> <pre> </pre> Category:SwiftUI Category:Examples")
 
(No difference)

Latest revision as of 08:42, 31 July 2024

Some Examples

Basics

Image(systemName: "globe.fill")
    .foregroundColor(.green)


Colour Multiplication

Image("lion")
    .colorMultiply(.yellow)

Applying Colour Filters

Image("lion")
    .hueRotation(.degrees(30))
    .saturation(0.6)
    .contrast(2)

Next