SwiftUI Bloc is a Swift package designed to bring the Bloc support to SwiftUI. It provides a set of tools like BlocProvider
, BlocBuilder
, BlocListener
and BlocConsumer
.
Important
This project is in alpha stage and subject to change as it evolves.
Check out our comprehensive documentation to get all the necessary information to start using Bloc in your project.
Warning
This section will be updated when there's more content available.
We would be delighted to have your help in translating our documentation into your preferred language! Simply open a Pull Request on our repository with the link to your translated version. We are looking forward to receiving your contribution!
Bloc can be installed using Swift Package Manager. To include it in your project, add the following dependency to your Package.swift file:
dependencies: [
.package(url: "https://github.com/swift-bloc/swiftui-bloc.git", from: "1.0.0")
]
We follow semantic versioning for this project. The version number is composed of three parts: MAJOR.MINOR.PATCH.
-
MAJOR version: Increments when there are incompatible changes and breaking changes. These changes may require updates to existing code and could potentially break backward compatibility.
-
MINOR version: Increments when new features or enhancements are added in a backward-compatible manner. It may include improvements, additions, or modifications to existing functionality.
-
The PATCH version includes bug fixes, patches, and safe modifications that address issues, bugs, or vulnerabilities without disrupting existing functionality. It may also include new features, but they must be implemented carefully to avoid breaking changes or compatibility issues.
It is recommended to review the release notes for each version to understand the specific changes and updates made in that particular release.
If you find a bug or have an idea for a new feature, please open an issue or submit a pull request. We welcome contributions from the community!