One clarification and one apology.
isAvailable is a boolean flag, declared inside the class this function inhabits.
This post should have been labelled under developer tools & services > Simulator rather than SwiftUI.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: