Here is a simple free function to invert boolean values for all you Swift KeyPath fans out there.| Christian Tietze