SwiftUIでImageの色を反転させる
SwiftUIでImageの色を反転させる方法です。
ContentView.swift
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(.snorlax)
.colorInvert()
}
}
}
SwiftUIでImageの色を反転させる方法です。
ContentView.swift
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(.snorlax)
.colorInvert()
}
}
}