SwiftUI - Working with Images

From PeformIQ Upgrade
Revision as of 08:42, 31 July 2024 by PeterHarding (talk | contribs) (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")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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