if #available(platform_name platform_version, *) {
        statements
      } else {
        fallback_statements
      }

      Swift language logo
      Swift API Availability Check Statement

      Swift Cookbook

      Shortcut: available

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.