cidre 0.9.1

Apple frameworks bindings for rust
Documentation
use crate::{arc, define_cls, define_obj_type, ns, objc};

define_obj_type!(
    #[doc(alias = "UNNotificationActionIcon")]
    pub NotificationActionIcon(ns::Id)
);

impl NotificationActionIcon {
    define_cls!(UN_NOTIFICATION_ACTION_ICON);

    #[objc::msg_send(iconWithTemplateImageName:)]
    pub fn with_template_image_name(template_image_name: &ns::String) -> arc::R<Self>;

    #[objc::msg_send(iconWithSystemImageName:)]
    pub fn with_sys_image_name(sys_image_name: &ns::String) -> arc::R<Self>;
}

unsafe extern "C" {
    static UN_NOTIFICATION_ACTION_ICON: &'static objc::Class<NotificationActionIcon>;
}