Releases: componentskit/ComponentsKit
Releases · componentskit/ComponentsKit
1.7.0
Improvements:
- Buttons, Cards, Alerts, Modals: added
BackgroundStylewith.solid,.blur, and iOS 26.liquidGlass - Made
UKAlertController, modal controllers,UKCountdown, andRadioGroupItemViewopen/public where needed - Added Swift 6 compatibility
- Added
AGENTS.mdwith a project overview, component list, usage notes, and contributor guidance
Changes & Deprecations:
- Reduced dimmed modal overlay opacity from
0.7to0.35 CardVM.backgroundColorchanged fromUniversalColortoUniversalColor?- Removed
ButtonVM.imageSrc→ useimage - Removed
ButtonVM.imageRenderingMode→ useimage.withRenderingMode(_:) - Removed
AvatarVM.ImageSource.local(_ name:bundle:)→ use.local(UniversalImage(...)) - Removed
AvatarVM.Placeholder.sfSymboland.icon→ use.image - Removed deprecated progress initializers that accepted
currentValue/initialValue→ setcurrentValuein the model
1.6.1
Fixes:
- Fixed modal dismissal to respect the
animatedflag in UIKit modal controllers. - Fixed completion callback propagation on dismiss in UIKit modal controllers.
1.6.0
Improvements:
- Added UniversalImage — a lightweight, platform-agnostic image type that works with both UIKit and SwiftUI
- Updated Avatar and AvatarGroup to use UniversalImage for more flexible local image handling
- Added new
imageparameter to ButtonVM for simpler and clearer image configuration - Loading: size is now optional — when nil, the loader expands to the available layout space
- Circular Progress: size is now optional — automatically expands to available space
- Loading: added
lineCapparameter for better stroke customization
Fixes:
- Completion closures are now properly passed to methods that present UKCenterModal and UKBottomModal
- Fixed an issue where UKLoading snapped during size changes
- Fixed an issue where UKLoading stopped animating when the app moved to the background
Changes & Deprecations:
- UKLoading: removed
styleparameter ButtonVM.imageSrc→ useimageButtonVM.imageRenderingMode→ useimage.withRenderingMode(_:)AvatarVM.ImageSource.local(name:bundle:)→ uselocal(UniversalImage)AvatarVM.Placeholder.sfSymbol→ useimageAvatarVM.Placeholder.icon→ useimage
1.5.4
Improvements:
- Make scale animations in buttons and cards smoother
Fixes:
- Fixed truncated alert titles
- Fixed
UKButtonandUKCardactions not triggered when parent has gesture recognizer
1.5.3
Fixes:
- Re-enable animations inside modal presentation modifiers
- Improve Card hit-testing and border rendering in SUCard
- Replaced
.strokewith.strokeBorderfor borders
1.5.2
Improvements
- Added
imageRenderingModeparameter toButtonVM - Adjusted button padding when there is no title and loader
Fixes
- Resolved issues where
SUButtonwas not interactable in some cases - Properly handled
dismissfromEnvironmentinbottomModalandcenterModal - Added missing
onDismissparameters in somebottomModalandcenterModalAPI variants.
1.5.1
Improvements
- Added new params in
CardVM:borderColorisTappableanimationScale
- Added new params in
ButtonVM:isLoadingloadingVMimgSrcimageLocationcontentSpacing
- Added new params in
InputFieldVM:captioncaptionFontstyle(light,bordered,faded)titleFonttitlePosition(inside,outside)
- Added new param in
TextInputVM:style(light,bordered,faded)
- Added new
minimalcase inButtonStyle - Added inits without
focusinSUTextInputandSUInputField
Bug Fixes
- Fixed a bug when the
SUTextInputcould go beyond the bounds - Fixed an issue with
SUButtonnot animating when tapped on a transparent background. - Fixed an issue with full-width components not updating their size on device rotation.
Changes
- Checkbox:
- changed checkbox size
- changed checkmark size
- changed checkmark line width
- Set a default value of
backgroundColortobackgroundinCardVM
1.5.0
New Components:
- Circular Progress
API Changes:
- Made
UKCardgeneric over its content. - Deprecated
currentValueinSUProgressBarandUKProgressBar; added it toProgressBarVMinstead. - Introduced a new API to present
SUAlertwith an item. - Exposed all
ComponentColorsubcolors viaUniversalColorextensions. - Renamed
ComponentsKitConfigtoTheme. - Corrected a typo in
BottomModalVMparameter name: renamedhidesOnSwaptohidesOnSwipe.
New Features:
- Added helper methods and a notification system for observing theme changes.
Improvements:
- Enhanced
UKTextInput:- Improved corner radius calculation
- Height recalculation on device rotation
- Compression resistance for better layout handling
- Adjusted font size for the large headline from
28to24. - Improved documentation for multiple components.
Bug Fixes:
- Fixed modal not presenting on app launch.
- Prevented
UKSegmentedControlfrom updating the selected ID when the item is disabled. - Fixed layout issues in modals.
1.4.0
1.3.2
- Fix layout issue in the
Countdowncomponent - Update README
- Add package to demos app as a reference instead of dependency