07-18-2023, 08:45 PM
My case, Swift 5.1, Xcode 10.3 (10G8)
Code was crashing Swift when a nested function was using the argument of an outer function as a default parameter.
e.g.
func foo(duration: TimeInterval) {
func bar(duration: TimeInterval = duration) {
}
}
I hope this helps.
Code was crashing Swift when a nested function was using the argument of an outer function as a default parameter.
e.g.
func foo(duration: TimeInterval) {
func bar(duration: TimeInterval = duration) {
}
}
I hope this helps.