Skip to content

Instantly share code, notes, and snippets.

@fitomad

fitomad/ni_soporte.swift Secret

Created Jun 25, 2020
Embed
What would you like to do?
// 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
You can’t perform that action at this time.