[go: up one dir, main page]

icrate 0.0.4

Bindings to Apple's frameworks
Documentation

icrate

Latest version License Documentation CI

Rust bindings to Apple's frameworks..

This crate is part of the objc2 project, see that for related crates, or see the docs for more details.

Supported versions

These bindings are automatically generated from the SDKs in Xcode 14.2 (will be periodically updated).

Currently supports:

  • macOS: 10.7-13.1
  • iOS/iPadOS: 7.0-16.2 (WIP)
  • tvOS: 9.0-16.1 (WIP)
  • watchOS: 1.0-9.1 (WIP)

Example

use icrate::Foundation::{NSCopying, NSArray};
use icrate::ns_string;

let string = ns_string!("world");
println!("hello {string}");

let array = NSArray::from_id_slice(&[string.copy()]);
println!("{array:?}");

More examples are available in the repository.