Skip to content

Releases: AparokshaUI/adwaita-swift

0.2.5

13 Apr 21:02
8fa3e4d
Compare
Choose a tag to compare

Improvements

  • Move documentation to DocC and start writing a full tutorial which is available in this repo
  • focused checks now whether a widget contains the focus instead of whether it has the focus
  • Add easier way to access an element of an array wrapped in a binding at a specific index or with a specific ID
  • Add support for alert dialogs
  • Add support for spawning windows outside the app structure (e.g. for CLI using windows for certain tasks, #20)
  • Make the navigation split view more capable
  • Easily observe when a binding is set
  • Simpler array bounds checking (by @ZevEisenberg in #7)
  • Simpler focused modifier implementation
  • Make Linux build matrix on SPI succeed (by @finestructure in #15)
  • Update docs for macOS platform (by @jrwren in #10)

New Contributors

Full Changelog: 0.2.4...0.2.5

0.2.4

21 Mar 21:20
Compare
Choose a tag to compare

Improvements

  • Add support for dialogs
  • Add support for about dialogs

Full Changelog: 0.2.3...0.2.4

0.2.3

17 Mar 20:36
Compare
Choose a tag to compare

Improvements

  • Do not erase view types with modifiers wherever possible
  • Add support for maximizing and unmaximizing windows
  • Add support for defining whether a label should be ellipsized when there is not enough space
  • Add docs for publishing apps
  • Update custom widget docs to newest version

Full Changelog: 0.2.2...0.2.3

0.2.2

03 Mar 05:14
Compare
Choose a tag to compare

Improvements

  • Add support for tooltips
  • Support modifying a window for a specific instance inside the child view
  • Support observing a window's current size
  • Make generation work on macOS (by @gregcotten in #2)
  • Add documentation information for the Swift Package Index

New Contributors

Full Changelog: 0.2.1...0.2.2

0.2.1

23 Feb 05:18
Compare
Choose a tag to compare

Improvements

  • Add support for navigation views
  • Add support for popovers
  • Add view modifiers for controlling the focus
  • Add support for flow boxes
  • Add modifier freeze for blocking updates
  • Add support for settings a view's visibility
  • Add properties of interfaces of classes to the generated result
  • Use visibility for building optional views

Bug Fixes

  • Fix modifiers for static widgets not always generated
  • Fix ComboRow's values not updating properly
  • Check whether a binding value changed before updating in widgets
  • Update a binding's getter and setter function whenever the view updates
  • Fix items displayed in reverse order in ForEach

Full Changelog: 0.2.0...0.2.1

0.2.0

30 Jan 14:04
Compare
Choose a tag to compare

Improvements

  • Add support for auto-generated widget bindings, generate bindings for many new widgets, and improve support for already existing widgets
  • Improve the performance of view updates when data changes
  • Add support for building apps on macOS (although it primarily targets Linux)
  • Add support for AboutWindow's issues URL
  • Add widget ForEach for dynamic lists that are transparent

Warning

This update completely replaces the AparokshaUI/Libadwaita "backend" with a direct access to the C library, simplifying the maintenance of the repository and the auto-generation of widget bindings. While the public SwiftUI-like API stays the same, custom widgets and modifiers accessing Libadwaita explicitly must be adapted to utilize the CAdw library (available in this package, enabling direct access to all the Gtk and Libadwaita types and functions) in order to work.

0.1.9

06 Jan 17:27
Compare
Choose a tag to compare

Improvements

  • Make functions storage(modifiers:) and updateStorage(_:modifiers:) on View public
  • Replace EitherView by the more powerful ViewStack
  • Add support for dynamic lists via List and other containers via Container
  • Add support for carousels
  • Add support for view switchers
  • Add support for overlays
  • Add support for progress bars
  • Add support for banners
  • Save a State property holding a codable value between app launches ✨
  • Add property rawValue to State for editing the value without updating the views
  • Add inspectOnAppear(_:) modifier
  • Add onClick(handler:) modifier (for every widget)
  • Add Form and multiple row types for grouping controls ✨
  • Add support for Text expanding to multiple lines if there isn't enough space
  • Make public typealias for the Libadwaita types interesting for using Adwaita

Bug Fixes

  • Make button update its handler on every view update
  • Make one State property always hold a reference to the same object containing the value

0.1.8

20 Dec 18:35
Compare
Choose a tag to compare

Improvements

  • Add support for the overlay split view with support for trailing sidebars and the option for specifying the sidebar's visibility
  • Add support for toggle buttons

Bug Fixes

  • Fix a bug where windows changed to the default window size when focusing another window

Full Changelog: 0.1.7...0.1.8

0.1.7

16 Dec 17:06
Compare
Choose a tag to compare

Improvements

  • Support adding a window as an overlay to a certain window using addWindow(_:parent:).
  • Add support for new window modifiers for a window's size, title, resizability and deletability
  • Add the FileDialog window type

Full Changelog: 0.1.6...0.1.7

0.1.6

05 Dec 21:52
Compare
Choose a tag to compare

Improvements

  • Add support for toasts
  • Add support for file dialogs
  • Add support for about windows
  • Move the list of widgets to the user manual

Bug Fixes

  • Fix onAppear and onUpdate

Full Changelog: 0.1.5...0.1.6