Skip to content

Releases: nothingsh/DeclarativeUIKit

1.0.0

Choose a tag to compare

@nothingsh nothingsh released this 16 Oct 08:32

The public API is now stable: minor versions only add API, and breaking changes wait for 2.0.

Fixed

  • overlay on a scroll view, such as VScroll, HScroll, VList or UITextView, stays over the visible area instead of being placed on the scrolled content.
  • avoidsKeyboard removes the room it made for the keyboard when the scroll view has left its window before the keyboard hides.
  • onReachEnd runs for the last row when the last sections of a VList are empty.
  • In a right-to-left layout, HScroll starts at its first element and keeps its place when the content or the scroll view changes width.
  • The UITextView placeholder lines up with the text in a right-to-left layout, where textContainerInset does not flip.

0.5.0

Choose a tag to compare

@nothingsh nothingsh released this 16 Oct 05:39

Added

  • lineHeight(_:) and kerning(_:) on UILabel, kept across the label's text, attributedText and font modifiers.
  • font(_:relativeTo:) on UILabel, UITextField and UITextView, 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, preferredSymbolConfigurationForImage and showsActivityIndicator.

0.4.0

Choose a tag to compare

@nothingsh nothingsh released this 16 Oct 05:11

Added

  • onEvent(_:perform:) on any UIControl, which runs a closure with the control each time one of the given events fires.
  • onTapGesture(count:perform:) and onLongPressGesture(minimumDuration:perform:) on any view.
  • replaceContent on stacks, HScroll and VScroll, which replaces the elements with new builder content.
  • fillsViewport(_:) on VScroll and HScroll, which makes short content at least as long as the scroll view.

0.3.0

Choose a tag to compare

@nothingsh nothingsh released this 16 Oct 04:31

Added

  • VList, a vertical list that creates rows lazily and updates them by diffing, with ListRow, ListRowView and ListSection.

Changed

  • The minimum deployment target is iOS 15.0, raised from iOS 13.0.

0.2.0

Choose a tag to compare

@nothingsh nothingsh released this 14 Oct 08:29

Added

  • offset for overlay and background decorations.
  • spacing(_:after:) on stacks and scroll views, for a different distance after one element.
  • HScroll and VScroll forward every form of padding.
  • Layer modifiers for any view: cornerRadius, border(color:width:) and shadow.
  • Accessibility modifiers: accessibilityHint, accessibilityTraits and isAccessibilityElement.
  • UILabel modifiers adjustsFontSizeToFitWidth and minimumScaleFactor.
  • UIImageView modifier preferredSymbolConfiguration.
  • Modifiers for UISegmentedControl, UIStepper, UIActivityIndicatorView, UIProgressView and UIPageControl.
  • DocC documentation catalog.

Fixed

  • configure on 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.