A backend for declarative UI frameworks, enabling the definition of UIs for multiple platforms in one executable target https://meta.aparoksha.dev/
Go to file
david-swift 681a51110d
All checks were successful
Deploy Docs / publish (push) Successful in 44s
SwiftLint / SwiftLint (push) Successful in 4s
Add support for non-updating state properties
2024-11-11 12:59:18 +01:00
.gitea Add link to redirect page 2024-10-06 23:45:17 +02:00
Sources Add support for non-updating state properties 2024-11-11 12:59:18 +01:00
Tests Add support for environment properties 2024-10-24 13:16:23 +02:00
.gitignore Migrate to the Aparoksha gitea instance 2024-10-06 23:11:50 +02:00
.swiftlint.yml Migrate to the Aparoksha gitea instance 2024-10-06 23:11:50 +02:00
LICENSE.md Implement basic support for views 2024-06-10 06:31:23 +02:00
Package.swift Update to Swift 6 2024-09-30 21:54:40 +02:00
README.md Fix code in readme 2024-10-08 19:43:21 +02:00

Meta

Documentation · Code

Meta is a framework allowing the creation of user interface (UI) frameworks in Swift.

Table of Contents

Overview

Meta follows the following principles:

  • It is a declarative framework, meaning that instead of writing how to construct a user interface, you write what it looks like.
  • The user interface is treated as a function of its state. Instead of directly modifying the UI, modify its state to update views.
  • Multiple UI frameworks can be used in the same code, but the selection of the framework happens when executing the app. This enables the creation of cross-platform UI frameworks combining several UI frameworks which render always with the same backend.

It knows the following layers of UI:

  • An app is the entry point of the executable, containing the windows.
  • A scene element is a template for a container holding one or multiple views (e.g., a window).
  • A view is a part of the actual UI inside a window, or another view.

Detailed information can be found in the docs.

Usage

Meta can be used for creating UI frameworks in Swift which can then be used to create apps.

Follow those steps if you want to create a UI framework.

  1. Open your Swift package in GNOME Builder, Xcode, or any other IDE.
  2. Open the Package.swift file.
  3. Into the Package initializer, under dependencies, paste:
.package(url: "https://git.aparoksha.dev/aparoksha/meta", from: "0.1.0")   

Thanks

  • DocC used for the documentation
  • SwiftLint for checking whether code style conventions are violated
  • The programming language Swift