web-ui

1.1.5

Render web pages and static sites in Swift.
maclong9/web-ui

What's New

Release 1.1.5

2025-05-16T14:08:12Z
  • fix!: improve list element with styles and tests included
A library for generating websites in a simple, type-safe, and consistent manner.

Report a Bug · Request a Feature · Ask a Question

license PRs welcome Automated Release Run Tests

Table of Contents

About

WebUI is a library for generating Web User Interfaces in a simple, type-safe, and consistent manner. It is inspired by modern web development practices and aims to provide a seamless experience for developers building static sites or dynamic web applications.

Built With

Getting Started

Prerequisites

To use WebUI, ensure you have the following installed:

  • Swift 6.1 or later

Usage

Script

curl -fSls https://raw.githubusercontent.com/maclong9/web-ui/refs/heads/main/initialize.sh | sh

Manually

Add the following to your package dependencies:

dependencies: [
    .package(url: "https://github.com/maclong9/web-ui.git", from: "1.0.0")
  ],

And then add this to your Target:

 .executableTarget(
      name: "Application",
      dependencies: [
        .product(name: "WebUI", package: "web-ui")
      ],
      path: "Sources",
      resources: [.process("Public")]
    )

Documentation

Comprehensive API documentation is available on the GitHub Pages.

Learning Resources

Development

WebUI follows a structured development process with automated workflows to ensure code quality and consistency across releases.

For detailed information about contributing to WebUI, please refer to our CONTRIBUTING.md file, which includes:

  • Branch structure and workflow
  • Versioning system
  • Release process
  • Hotfix procedures
  • Testing guidelines
  • Documentation generation
  • Code style guidelines

Quick Reference

  • Version bumps are triggered by commit prefixes: feat!: (major), feat: (minor), and fix: (patch)
  • For hotfixes, use fix!: in the commit message to trigger automatic PRs to all branches
  • Run tests locally with swift test
  • Generate documentation with swift package generate-documentation --target WebUI

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.

Please see our CONTRIBUTING.md document for detailed guidelines on how to contribute to this project. All contributors are expected to adhere to our Code of Conduct.

Support

Reach out to the maintainer at one of the following places:

License

This project is licensed under the Apache 2.0 license. See LICENSE for more information.

Acknowledgements

Thanks to the following resources that inspired WebUI:

Description

  • Swift Tools 6.1.0
View More Packages from this Author

Dependencies

Last updated: Fri May 16 2025 16:25:51 GMT-0900 (Hawaii-Aleutian Daylight Time)