Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.1.0] - 2026-05-31

### Added
- Public memberwise initializer for ``Options``, allowing consumers to construct
- Public memberwise initializer for `Options`, allowing consumers to construct
a configuration directly (e.g. `Options(progressColor: .blue)`) instead of
only through the `set…` modifiers.
- Unit test target (`ProgressUITests`) covering `Options` defaults, the new
Expand All @@ -27,3 +29,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Corrected the README "Dynamic Colors" and "Customization Options" examples,
which previously did not compile.
- Resolved DocC symbol-link warnings in the `Options.size`/`setSize(_:)` size
tables and the `GrowDirection.end` default links; DocC now builds cleanly.

### Security
- Set a least-privilege `GITHUB_TOKEN` (`contents: read`) on the Build & Test
workflow, resolving the CodeQL `actions/missing-workflow-permissions` alerts.

[Unreleased]: https://github.com/PierreJanineh-com/ProgressUI/compare/1.1.0...HEAD
[1.1.0]: https://github.com/PierreJanineh-com/ProgressUI/compare/1.0.4...1.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ extension ProgressUI {
///
/// Default: ``ProgressSize/large``.
///
/// ``ProgressSize/large`` > ``trackWidth`` `= 45`, ``progressLineWidth`` `= 10`, ``progressInnerLineWidth`` `= 5`, ``radius`` `= 60`
/// ``ProgressSize/large`` > `trackWidth = 45`, `progressLineWidth = 10`, `progressInnerLineWidth = 5`, `radius = 60`
///
/// ``ProgressSize/small`` > ``trackWidth`` = `15`, ``progressLineWidth`` `= 5`, ``progressInnerLineWidth`` `= 2.5`, ``radius`` `= 30`
/// ``ProgressSize/small`` > `trackWidth = 15`, `progressLineWidth = 5`, `progressInnerLineWidth = 2.5`, `radius = 30`
Comment on lines +17 to +19
public func setSize(_ size: ProgressSize) -> Self {
var copy = self
copy.options.size = size
Expand Down Expand Up @@ -129,10 +129,10 @@ extension ProgressUI {
}

/// Sets the direction the progress arc growth.
/// - Parameter from: Growing animation direction (default: .end).
/// - Parameter direction: Growing animation direction (default: .end).
/// - Returns: A modified ProgressUI instance.
///
/// Default: ``ProgressUI/GrowDirection/end.
/// Default: ``GrowDirection/end``.
///
/// > Setting this value to ``ProgressUI/GrowDirection/center`` with rotation
public func setGrow(from direction: GrowDirection = .end) -> Self {
Expand Down
8 changes: 4 additions & 4 deletions Sources/ProgressUI/Options.swift
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ public struct Options {

Default: ``ProgressSize/large``.

``ProgressSize/large`` > ``trackWidth`` `= 45`, ``progressLineWidth`` `= 10`, ``progressInnerLineWidth`` `= 5`, ``radius`` `= 60`
``ProgressSize/small`` > ``trackWidth`` = `15`, ``progressLineWidth`` `= 5`, ``progressInnerLineWidth`` `= 2.5`, ``radius`` `= 30`
``ProgressSize/large`` > `trackWidth = 45`, `progressLineWidth = 10`, `progressInnerLineWidth = 5`, `radius = 60`

``ProgressSize/small`` > `trackWidth = 15`, `progressLineWidth = 5`, `progressInnerLineWidth = 2.5`, `radius = 30`
Comment on lines +71 to +73

> You can set this with the modifier ``ProgressUI/ProgressUI/setSize(_:)``.
*/
Expand Down Expand Up @@ -160,7 +160,7 @@ public struct Options {
/**
Determines where the growing animation should go.

Default: ``ProgressUI/GrowDirection/end.
Default: ``GrowDirection/end``.

> You can set this with the modifier ``ProgressUI/ProgressUI/setGrow(from:)``.
*/
Expand Down
Loading