Skip to content

Conversation

@litso
Copy link
Owner

@litso litso commented Jun 11, 2020

Adds function builder support to Section and Sections:

let sections = Sections {
    Section(name: "a section") {
        Row(value: "a row")
        Row(value: "another row")
    }
    Section(name: "another section") {
        Row(value: "another other row")
        if someCondition {
            Row(value: "a conditional row")
        }
    }
}

This replaces the existing SectionBuilder, and also raises the iOS deployment target and Swift version, so this is a breaking change.

Erik Strottmann added 4 commits June 17, 2020 09:33
The iOS deployment target is now iOS 13.3, and the Swift language
version is now Swift 5.2 (or 5 where 5.2 is not selectable).
Sections now uses the default implementations for Sequence
requirements provided by Collection, and updated constraints for other
collection protocol requirements.
@eerie444 eerie444 force-pushed the function-builders branch from 0e703a6 to 48c9ad6 Compare June 24, 2020 23:54
@eerie444 eerie444 changed the title wip-switch-to-function-builders Add function builder support Jun 24, 2020
@eerie444 eerie444 marked this pull request as ready for review June 24, 2020 23:58
@eerie444 eerie444 changed the title Add function builder support Replace SectionBuilder with function builders Jun 24, 2020
Section and Sections can now be initialized using function builder
syntax. This replaces the previous SectionBuilder.
@eerie444 eerie444 force-pushed the function-builders branch from 48c9ad6 to 9cdae65 Compare June 25, 2020 17:44
@eerie444 eerie444 self-assigned this Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants