Repository navigation
Releases: nothingsh/DeclarativeUIKit
Releases · nothingsh/DeclarativeUIKit
Release list
1.0.0
The public API is now stable: minor versions only add API, and breaking changes wait for 2.0.
Fixed
overlayon a scroll view, such asVScroll,HScroll,VListorUITextView, stays over the visible area instead of being placed on the scrolled content.avoidsKeyboardremoves the room it made for the keyboard when the scroll view has left its window before the keyboard hides.onReachEndruns for the last row when the last sections of aVListare empty.- In a right-to-left layout,
HScrollstarts at its first element and keeps its place when the content or the scroll view changes width. - The
UITextViewplaceholder lines up with the text in a right-to-left layout, wheretextContainerInsetdoes not flip.
0.5.0
Added
lineHeight(_:)andkerning(_:)onUILabel, kept across the label'stext,attributedTextandfontmodifiers.font(_:relativeTo:)onUILabel,UITextFieldandUITextView, which makes a custom font follow Dynamic Type.- Modifiers for buttons created with
UIButton(configuration:):buttonSize,cornerStyle,contentInsets,baseForegroundColor,baseBackgroundColor,subtitle,titleAlignment,titlePadding,titleFont,imagePlacement,imagePadding,preferredSymbolConfigurationForImageandshowsActivityIndicator.
0.4.0
Added
onEvent(_:perform:)on anyUIControl, which runs a closure with the control each time one of the given events fires.onTapGesture(count:perform:)andonLongPressGesture(minimumDuration:perform:)on any view.replaceContenton stacks,HScrollandVScroll, which replaces the elements with new builder content.fillsViewport(_:)onVScrollandHScroll, which makes short content at least as long as the scroll view.
0.3.0
0.2.0
Added
offsetforoverlayandbackgrounddecorations.spacing(_:after:)on stacks and scroll views, for a different distance after one element.HScrollandVScrollforward every form ofpadding.- Layer modifiers for any view:
cornerRadius,border(color:width:)andshadow. - Accessibility modifiers:
accessibilityHint,accessibilityTraitsandisAccessibilityElement. UILabelmodifiersadjustsFontSizeToFitWidthandminimumScaleFactor.UIImageViewmodifierpreferredSymbolConfiguration.- Modifiers for
UISegmentedControl,UIStepper,UIActivityIndicatorView,UIProgressViewandUIPageControl. - DocC documentation catalog.
Fixed
configureon a custom view subclass compiles with Swift 6.1 and earlier, where the closure did not receive the subclass type.- The remaining spacers in a stack keep sharing the extra space equally after one of them is removed.