Skip to content

Commit

Permalink
Merge pull request #154 from kyleve/kve/first-version-numbers
Browse files Browse the repository at this point in the history
Update README and version numbers; add some typealiases
  • Loading branch information
kyleve authored Jun 2, 2020
2 parents 414f99b + 88791e1 commit 26ac904
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 4 deletions.
2 changes: 1 addition & 1 deletion BlueprintLists.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = 'BlueprintLists'
s.version = '0.1.1'
s.version = '0.6.0'
s.summary = 'Declarative list views for iOS apps that deploy back to iOS 10.0.'
s.homepage = 'https://github.com/kyleve/Listable'
s.license = { type: 'Proprietary', text: "© 2020 Square, Inc." }
Expand Down
4 changes: 4 additions & 0 deletions BlueprintLists/Sources/HeaderFooter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ import BlueprintUI
import Listable


public typealias BlueprintHeaderContent = BlueprintHeaderFooterContent
public typealias BlueprintFooterContent = BlueprintHeaderFooterContent


public protocol BlueprintHeaderFooterContent : HeaderFooterContent where ContentView == BlueprintView
{
//
Expand Down
32 changes: 30 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,40 @@

### Added

- Added support for [conditionally scrolling to items](https://github.com/kyleve/Listable/pull/129) on insert, based on the `shouldPerform` block passed to the `AutoScrollAction`.

### Removed

### Changed

### Misc

# Past Releases

## 0.6.0

### Fixed

- Fixed [multiple selection and highlight issues](https://github.com/kyleve/Listable/pull/153): Highlighting cells now only occurs if the `selectionStyle` is `tappable` or `selectable`. Ensure that when `tappable` is provided, the content of a cell is updated when the cell is deselected.

### Added

- Added type aliases for `HeaderFooter` and `HeaderFooterContent` to reduce verbosity of use. Now instead of typing `HeaderFooter(MyHeader())`, you can use `Header(MyHeader())`.
- Replace unused / experimental `Binding` type [with `Coordinator`](https://github.com/kyleve/Listable/pull/143), which allows you to independently manage item state in a similar manner to SwiftUI's `UIViewRepresentable`'s `Coordinator`.

### Removed

### Changed

- **Major Change:** `ItemElement` and `HeaderFooterElement` [were renamed to `ItemContent` and `HeaderFooterContent`](https://github.com/kyleve/Listable/pull/150), respectively. This is intended to be a clearer indicaton as to what they are for (the content of an item or header/footer), and fixes a name collision with Blueprint, where we overloaded the meaning of `Element` when using Blueprint integration via `BlueprintLists`.
- Changed `BlueprintHeaderFooter{Content/Element}`'s main method to be `elementRepresentation` instead of `element`. This allows easier conformance of `BlueprintUI.ProxyElement` types to `BlueprintHeaderFooter{Content/Element}`.
- `SelectionMode` [was moved from `Content` to `Behavior`](https://github.com/kyleve/Listable/pull/152), which is in line with other collection view behaviours like scrolling and underflow.
- Rename `ItemSelectionStyle.none` to `ItemSelectionStyle.notSelectable`. This is to avoid conflicts with `Optional.none` when working with `ItemSelectionStyle` as an `Optional`.

## 0.5.0

### Added

- Added support for [conditionally scrolling to items](https://github.com/kyleve/Listable/pull/129) on insert, based on the `shouldPerform` block passed to the `AutoScrollAction`.

## Earlier

Earlier releases were ad-hoc and not tracked. To see all changes, please reference [closed PRs on Github](https://github.com/kyleve/Listable/pulls?q=is%3Apr+is%3Aclosed).
2 changes: 1 addition & 1 deletion Listable.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = 'Listable'
s.version = '1.0.0.LOCAL'
s.version = '0.6.0'
s.summary = 'Declarative list views for iOS apps that deploy back to iOS 10.0.'
s.homepage = 'https://github.com/kyleve/Listable'
s.license = { type: 'Proprietary', text: "© 2020 Square, Inc." }
Expand Down
3 changes: 3 additions & 0 deletions Listable/Sources/HeaderFooter/HeaderFooter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public protocol AnyHeaderFooter_Internal
}


public typealias Header<Content:HeaderFooterContent> = HeaderFooter<Content>
public typealias Footer<Content:HeaderFooterContent> = HeaderFooter<Content>

public struct HeaderFooter<Content:HeaderFooterContent> : AnyHeaderFooter
{
public var content : Content
Expand Down
4 changes: 4 additions & 0 deletions Listable/Sources/HeaderFooter/HeaderFooterContent.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
//


public typealias HeaderContent = HeaderFooterContent
public typealias FooterContent = HeaderFooterContent


public protocol HeaderFooterContent
{
//
Expand Down

0 comments on commit 26ac904

Please sign in to comment.