SwiftUI-Animatable-SF-Symbols

USAGE

Screen.Recording.2022-06-29.at.22.55.43.mov

Add OnOffIcons file in your project and give a try below code

VStack (spacing: 45){
        HStack{
          
            OnOffIcons(imageName: "hand.raised", color: .black, isOn: true)
            OnOffIcons(imageName: "bell", color: .red, isOn: true)
            OnOffIcons(imageName: "volume", color: .orange, isOn: false)
            OnOffIcons(imageName: "wifi", color: .blue, isOn: false)
        }
        
        HStack{
            OnOffIcons(imageName: "eye", color: .black, isOn: true)
            OnOffIcons(imageName: "bolt.fill", color: .red, isOn: true)
            OnOffIcons(imageName: "mic", color: .orange, isOn: false)
            OnOffIcons(imageName: "video", color: .blue, isOn: false)
            
        }
        
    }

GitHub

View Github