Skip to content

Releases: BinaryBirds/swift-html

Fix delete attribute

16 Feb 11:10
@tib tib

Choose a tag to compare

  • fixed delete attribute method
  • new attribute test cases

Public Text init

11 Feb 14:07
@tib tib

Choose a tag to compare

1.6.1

fix text public init

Brand new init methods

11 Feb 14:02
@tib tib

Choose a tag to compare

Tag class changes:

  • New init(_ children: [Tag] = []) init method
  • New convenience init(@TagBuilder _ builder: () -> [Tag]) method
  • New convenience init(_ contents: String?) method
  • New open class func createNode() -> Node function
  • New setContents function
  • New setAttributes function
  • New deleteAttribute function
    New tag base clases:
  • EmptyTag
  • GroupTag
    New test cases
    Comment tag rendering with spaces

Better class management

06 Feb 12:27
@tib tib

Choose a tag to compare

  • class([String]), class(String?), class(String...) always sets a new value for the class list
  • class(add: [String]), class(add: String?) add one ore more new values to the class list
  • class(remove: [String]), class(remove: String?) remove one ore more values from the class list
  • class(toggle: String?) toggle (add or remove) a single class value
  • Node contents is a public variable instead of a constant (let -> var)
  • Better unit tests for class manipulation & node content changes

Support multiple class attributes

05 Feb 13:03
@tib tib

Choose a tag to compare

  • support for multiple class attributes e.g. .class("a").class(["b", "c"]) -> "a b c"
  • condition support for class method with array parameter
  • new init method for button tags

Fix img alt tag attribute

05 Feb 11:10
@tib tib
8dd0784

Choose a tag to compare

  • fixed img alt tag issue @bgisme

SwiftSvg double precision

04 Feb 16:26
@tib tib

Choose a tag to compare

1.3.5

SwiftSvg double precision

Link integrity support

04 Feb 08:02
@tib tib

Choose a tag to compare

  • add link integrity attribute
  • link, script integrity tests

Variadic class support

26 Jan 09:26
@tib tib

Choose a tag to compare

  • Variadic class attribute support .class("a", "b", "c")
  • MediaQuery documentation

Fix imports

25 Jan 10:02
@tib tib

Choose a tag to compare

1.3.2

Merge branch 'main' of github.com:BinaryBirds/swift-html