Post

Replies

Boosts

Views

Activity

Reply to function within a switch case
You probably need a "default" clause to handle the switch on string literal. import Foundation let text = "Remifentanilo 5 mg en 250 ml" func remi5en250() { print("something") } switch text { case "Remifentanilo 5 mg en 250 ml": remi5en250() // printed "something" default: break }
May ’22