Last updated:
0 purchases
is ios app on mac
is_ios_app_on_mac #
A Flutter plugin that checks to see if your Flutter iOS app is being run on an Apple Silicon Mac.
Uses Apple's isiOSAppOnMac function.
From Apple's Documentation:
The value of this property is true only when the process is an iOS app running on a Mac. The value of the property is false for all other apps on the Mac, including Mac apps built using Mac Catalyst. The property is also false for processes running on platforms other than macOS.
This function only works on iOS 14 and above so the result will always return false on apps that are below iOS 14.
Usage #
import 'package:is_ios_app_on_mac/is_ios_app_on_mac.dart';
const isOnMac = await IsIosAppOnMac().isiOSAppOnMac()
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.