Skip to content

Instantly share code, notes, and snippets.

@blladnar
Created November 20, 2020 02:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blladnar/058c43f48468cc48606f9c2c8f6507e9 to your computer and use it in GitHub Desktop.
Save blladnar/058c43f48468cc48606f9c2c8f6507e9 to your computer and use it in GitHub Desktop.
func sleep(_ time: Double) {
usleep(UInt32(time * 1000000))
}
func debug(_ strings: Any...) -> some View {
var string = ""
for component in strings {
string += "\(component)" + " "
}
print(string)
return AnyView(EmptyView())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment