Swift has UIForceTouchCapability class which allows to measure things\' weight using iPhone screen with touch force parameter. This class is available for iPhon
UIForceTouchCapability