swiftui-native 0.0.1

SwiftUI from pure Rust — no Swift bridge, no shim, only swift-runtime calls
Documentation
//! Modifiers taking a string, a Text, or an optional.

use super::*;
use crate::resolve;
//
// A `LocalizedStringKey` is four words, a `Text` is four words, `Bool?` is a
// payload and a tag in two registers, and `Color?` is a single word behind a
// pointer — `Color` wraps a reference, so a null word is `nil` and no separate
// tag is needed.

modifiers! {
    /// Apply `.searchCompletion(_:)`.
    fn search_completion(value: &str) = modifier_str(search_completion_fn, search_completion_oret, value);
    /// Apply `.textInputCompletion(_:)`.
    fn text_input_completion(value: &str) = modifier_str(text_input_completion_fn, text_input_completion_oret, value);
    /// Apply `.fileDialogConfirmationLabel(_:)`.
    fn file_dialog_confirmation_label(value: &str) = modifier_lsk(file_dialog_confirmation_label_fn, file_dialog_confirmation_label_oret, value);
    /// Apply `.fileDialogMessage(_:)`.
    fn file_dialog_message(value: &str) = modifier_lsk(file_dialog_message_fn, file_dialog_message_oret, value);
    /// Apply `.fileExporterFilenameLabel(_:)`.
    fn file_exporter_filename_label(value: &str) = modifier_lsk(file_exporter_filename_label_fn, file_exporter_filename_label_oret, value);
    /// Apply `.help(_:)`.
    fn help(value: &str) = modifier_lsk(help_fn, help_oret, value);
    /// Apply `.navigationSubtitle(_:)`.
    fn navigation_subtitle(value: &str) = modifier_lsk(navigation_subtitle_fn, navigation_subtitle_oret, value);
    /// Apply `.help(_:)`.
    fn help_text(value: &str) = modifier_text(help_text_fn, help_text_oret, value);
    /// Apply `.navigationSubtitle(_:)`.
    fn navigation_subtitle_text(value: &str) = modifier_text(navigation_subtitle_text_fn, navigation_subtitle_text_oret, value);
    /// Apply `.touchBarCustomizationLabel(_:)`.
    fn touch_bar_customization_label(value: &str) = modifier_text(touch_bar_customization_label_fn, touch_bar_customization_label_oret, value);
}