// CercaViewModel | |
internal static var nearbySessionAvailable: Bool | |
{ | |
return NISession.isSupported | |
} | |
... | |
// CercaApp | |
if CercaViewModel.nearbySessionAvailable | |
{ | |
NearbyView() | |
} | |
else | |
{ | |
ErrorView() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment