Skip to content

Instantly share code, notes, and snippets.

@blladnar
Created November 20, 2020 02:46
Show Gist options
  • 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