Releases: BinaryBirds/swift-html
Releases · BinaryBirds/swift-html
Fix delete attribute
- fixed delete attribute method
- new attribute test cases
Public Text init
1.6.1 fix text public init
Brand new init methods
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() -> Nodefunction - New
setContentsfunction - New
setAttributesfunction - New
deleteAttributefunction
New tag base clases: - EmptyTag
- GroupTag
New test cases
Comment tag rendering with spaces
Better class management
class([String]),class(String?),class(String...)always sets a new value for the class listclass(add: [String]),class(add: String?)add one ore more new values to the class listclass(remove: [String]),class(remove: String?)remove one ore more values from the class listclass(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
- 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
- fixed img alt tag issue @bgisme
SwiftSvg double precision
1.3.5 SwiftSvg double precision
Link integrity support
- add link integrity attribute
- link, script integrity tests
Variadic class support
- Variadic class attribute support
.class("a", "b", "c") - MediaQuery documentation
Fix imports
1.3.2 Merge branch 'main' of github.com:BinaryBirds/swift-html