-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from kyleve/kve/element-to-content
Rename "Element" to "Content"
- Loading branch information
Showing
46 changed files
with
643 additions
and
522 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
// | ||
// Deprecations.swift | ||
// BlueprintLists | ||
// | ||
// Created by Kyle Van Essen on 5/29/20. | ||
// | ||
|
||
import BlueprintUI | ||
|
||
|
||
/// | ||
/// This file contains deprecations which have occurred in BlueprintLists, for which there are reasonable | ||
/// forward-moving defaults (eg, renames), to ease transitions for consumers when they update their library version. | ||
/// | ||
/// To add new deprecations and changes: | ||
/// ------------------------------------ | ||
/// 1) Add a new `MARK: Deprecated <Date>` section for the deprecations you are adding. | ||
/// | ||
/// 2) Add deprecation annotations like so: | ||
/// ``` | ||
/// @available(*, deprecated, renamed: "ItemContent") | ||
/// public typealias ItemElement = ItemContent | ||
/// ``` | ||
/// | ||
/// Or, when deprecating properties, add a passthrough like so: | ||
/// ``` | ||
/// public extension Item { | ||
/// @available(*, deprecated, renamed: "content") | ||
/// var element : Content { | ||
/// self.content | ||
/// } | ||
/// } | ||
/// ``` | ||
/// | ||
/// 3) After 1-2 months has passed, mark the previously `deprecated` items as `unavailable`: | ||
/// ``` | ||
/// @available(*, unavailable, renamed: "ItemContent") | ||
/// ``` | ||
/// | ||
/// 4) After another 1-2 months have passed, feel free to remove the `MARK: Deprecated` section you added. | ||
/// | ||
|
||
// | ||
// MARK: Deprecated May 29, 2019 | ||
// | ||
|
||
@available(*, deprecated, renamed: "BlueprintItemContent") | ||
public typealias BlueprintItemElement = BlueprintItemContent | ||
|
||
@available(*, deprecated, renamed: "BlueprintHeaderFooterContent") | ||
public typealias BlueprintHeaderFooterElement = BlueprintHeaderFooterContent | ||
|
||
public extension BlueprintHeaderFooterContent { | ||
@available(*, deprecated, renamed: "elementRepresentation") | ||
var element : Element { | ||
self.elementRepresentation | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.