Created
August 20, 2025 06:26
-
-
Save AppleCEO/2522d22e74c5f941608e532f8363d15c to your computer and use it in GitHub Desktop.
logEvent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func logEvent(event: AnalyticsEvent) { | |
switch event { | |
case .sendFeedback(_: String, content: String): | |
print("\(content)") | |
// rest of the cases | |
} | |
if case let AnalyticsEvent.sendFeedback(_, content) = event { | |
print("\(content)") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment