Welcome to the DragonAnnouncement Swift Package. Use this package to show announcements in your app from a local source in the app or from a remote source from the web.
Add DragonAnnouncement
to your Package.swift dependencies
dependencies: [
...
.package(url: "https://github.com/Drag0ndust/DragonAnnouncement", from: "1.0.0"),
...
]
The package provides a ViewModifier
called .announcement(type:)
which can be added to each SwiftUI View.
VStack {
Text("Example App")
}
.announcement(type: .local(announcement: exampleAnnouncement))
For a complete example, refer to the ExampleApp directory in the project repository.
- Read the Code of Conduct
- Read the Contribution Guidelines
- Create a new issue or work on an existing issue (check if someone is already assigned first).
- Feel free to extend the functionality, but ensure your change benefits all users of this package.
You can sponsor me on Github Sponsors to support my open-source projects.
Feel free to reach out if you have questions or if you want to contribute in any way:
- Threads: @drag0ndust
- Mastodon: @[email protected]
- E-Mail: [email protected]
This project is licensed under MIT.