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 }
Topic: Programming Languages SubTopic: Swift Tags:
May ’22
Reply to Swift Package with Demo project with Xcode 16
It is still not working in my environment. Xcode 16.1 Betas 2 Xcode 16.0 Xcode 16.0 Betas 5 Is drag and drop not possible in Xcode versions prior to 15?
Replies
Boosts
Views
Activity
Sep ’24
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 }
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to I want to connect animations with Swift UI.
Thank you. I have the implementation I envisioned. Happiness to you.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’22
Reply to Even if it is implemented according to the document of Core Data, it does not work well.
I thought the same! thank you. I was skeptical about the content of the document because SceneDelegate has a window. All solved. thank you.
Replies
Boosts
Views
Activity
Mar ’22