How to make Input Value Toggle in SwiftUI?

//
//  ContentView.swift
//  InputValueDemo
//
//  Created by WilliamJiamin on 2024/6/24.
//

import SwiftUI

struct ContentView: View {
    @State private var lightON: Bool = false
    var body: some View {
        VStack{
            Toggle("Light Switch", isOn: $lightON)
                .toggleStyle(SwitchToggleStyle(tint: .yellow))

        }
    }
}

#Preview {
    ContentView()
}