+++
title = "AppKit"
description = "A backend for native macOS apps. Integrate with SwiftUI and AppKit."
draft = true
[taxonomies]
tags = ["macOS", "Aparoksha"]
+++

It is not recommended to use this package to create apps specifically for macOS.
Directly use <a class="external" href="">SwiftUI</a> or <a class="external" href="">AppKit</a>.

Browse the <a class="external" href="https://adwaita-swift.aparoksha.dev">documentation</a> and find the source code <a class="external" href="https://git.aparoksha.dev/aparoksha/adwaita-swift">here</a>.

## The Backend

The AppKit backend is based on the <a class="external" href="">AppKit</a> package provided by Apple.
Most of the views are based on existing <a class="external" href="">SwiftUI</a> views thanks to the <a class="external" href="">interoperability feature</a>.

## The Development Environment

You need a machine running macOS to get started developing Mac apps.
It is recommended to use the <a class="external" href="">Xcode</a> IDE.

To avoid having to create an <a class="external" href="">Xcode project file</a>, use the <a class="external" href="">Swift Bundler</a> and <a class="external" href="">configure Xcode</a> accordingly.

{{ image(url="Environment.png", alt="Xcode and a simple native macOS app" transparent=true) }}

## Distribution

Find more information about compiling the Swift executable target into an app in <a class="external" href="">Swift Bundler's documentation</a>.

## Aparoksha Interoperability
This backend is part of the Aparoksha package. If you use default Aparoksha elements, they will render correctly on GNOME.
You can call platform-specific widgets for GNOME as well.
