diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b9a7dd..d1d2599 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,14 +34,14 @@ jobs: run: | LAST_TAG=$(git tag -l | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | sort -V | tail -n 1) if [ -z "$LAST_TAG" ]; then - echo "No previous Atomic releases found, will release" + echo "No previous Snacker releases found, will release" echo "has-changes=true" >> $GITHUB_OUTPUT else if [ -n "$(git diff --name-only ${LAST_TAG}..HEAD)" ]; then - echo "Atomic changes found since $LAST_TAG" + echo "Snacker changes found since $LAST_TAG" echo "has-changes=true" >> $GITHUB_OUTPUT else - echo "No Atomic changes since $LAST_TAG" + echo "No Snacker changes since $LAST_TAG" echo "has-changes=false" >> $GITHUB_OUTPUT fi fi @@ -53,7 +53,7 @@ jobs: run: | NEXT_VERSION=$(git cliff --config ./cliff.toml --bumped-version) echo "NEXT_VERSION=$NEXT_VERSION" >> "$GITHUB_OUTPUT" - echo "Next Atomic version will be: $NEXT_VERSION" + echo "Next Snacker version will be: $NEXT_VERSION" - name: Update CHANGELOG.md if: steps.check-changes.outputs.has-changes == 'true' env: @@ -62,7 +62,7 @@ jobs: - name: Update README.md version if: steps.check-changes.outputs.has-changes == 'true' run: | - sed -i -E 's|https://github.com/space-code/atomic.git", from: "[0-9]+\.[0-9]+\.[0-9]+"|https://github.com/space-code/atomic.git", from: "'"${{ steps.next-version.outputs.NEXT_VERSION }}"'"|g' README.md + sed -i -E 's|https://github.com/space-code/snacker.git", from: "[0-9]+\.[0-9]+\.[0-9]+"|https://github.com/space-code/snacker.git", from: "'"${{ steps.next-version.outputs.NEXT_VERSION }}"'"|g' README.md echo "Updated README.md with version ${{ steps.next-version.outputs.NEXT_VERSION }}" - name: Get release notes id: release-notes @@ -89,13 +89,13 @@ jobs: commit_options: "--allow-empty --no-verify" tagging_message: ${{ steps.next-version.outputs.NEXT_VERSION }} skip_dirty_check: true - commit_message: "[Release] Atomic ${{ steps.next-version.outputs.NEXT_VERSION }}" + commit_message: "[Release] Snacker ${{ steps.next-version.outputs.NEXT_VERSION }}" - name: Create GitHub Release uses: softprops/action-gh-release@v2 if: steps.check-changes.outputs.has-changes == 'true' with: draft: false - repository: space-code/atomic + repository: space-code/snacker name: ${{ steps.next-version.outputs.NEXT_VERSION }} tag_name: ${{ steps.next-version.outputs.NEXT_VERSION }} body: ${{ steps.release-notes.outputs.RELEASE_NOTES }} diff --git a/CHANGELOG.md b/CHANGELOG.md index f96a6af..290c9d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,14 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). #### 1.x Releases -- `1.0.x` Releases - [1.0.1](#101) | [1.0.0](#100) +- `1.0.x` Releases - [1.0.0](#100) --- - - -## [1.0.1](https://github.com/space-code/snacker/releases/tag/1.0.1) - -Released on 2026-01-25. All issues associated with this milestone can be found using this [filter](https://github.com/space-code/snacker/milestones?state=closed&q=1.0.1). +## [Unreleased] ### Documentation - Update `README.md` @@ -46,7 +42,7 @@ Released on 2026-01-25. All issues associated with this milestone can be found u - Contributed by [@dependabot[bot]](https://github.com/dependabot[bot]) in Pull Request [#3](https://github.com/space-code/snacker/pull/3). ### New Contributors -* @renovate[bot] made their first contribution in +* @renovate[bot] made their first contribution in [#28](https://github.com/space-code/snacker/pull/28) * @dependabot[bot] made their first contribution in [#3](https://github.com/space-code/snacker/pull/3) ## [1.0.0](https://github.com/space-code/snacker/releases/tag/1.0.0) @@ -59,5 +55,5 @@ Released on 2025-03-24. All issues associated with this milestone can be found u - Implement `Snacker` - Contributed by [@ns-vasilev](https://github.com/ns-vasilev) in Pull Request [#1](https://github.com/space-code/snacker/pull/1). -[1.0.1]: https://github.com/space-code/snacker/compare/1.0.0..1.0.1 +[unreleased]: https://github.com/space-code/snacker/compare/1.0.0..HEAD diff --git a/Sources/snacker/Classes/Core/Snacker/Snacker.swift b/Sources/snacker/Classes/Core/Snacker/Snacker.swift index 36f1c04..d384e1a 100644 --- a/Sources/snacker/Classes/Core/Snacker/Snacker.swift +++ b/Sources/snacker/Classes/Core/Snacker/Snacker.swift @@ -51,13 +51,12 @@ public final class Snacker { inContainerView containerView: UIView, data: SnackbarData ) -> SnackbarController { - let controller = SnackbarController( + SnackbarController( contentView: view, containerView: containerView, alignment: data.snackbarAlignment, insets: data.insets ) - return controller } }