Skip to content

Latest commit

 

History

History
219 lines (135 loc) · 9.12 KB

CHANGELOG.md

File metadata and controls

219 lines (135 loc) · 9.12 KB

2.5.2

This patch release includes performance improvements and support for macCatalyst apps.

2.5.1

Fix a runtime crash that occurred when the PhotoFoundation framework was included in an app.

Source changes

2.5.0

There is now a new NSDictionary property in CBCNode called metadata. It is meant to store all the information regarding an example rather than using separate methods as previously done. With that said, we offer backwards compatibility and still allow the usage of methods to provide example information.

Before:

+ (NSArray *)catalogBreadcrumbs {
  return @[ @"Activity Indicator", @"Activity Indicator" ];
}

+ (NSString *)catalogDescription {
  return @"Activity Indicator is a visual indication of an app loading content. It can display how "
         @"long an operation will take or visualize an unspecified wait time.";
}

+ (BOOL)catalogIsPrimaryDemo {
  return YES;
}

+ (BOOL)catalogIsPresentable {
  return YES;
}

After:

+ (NSDictionary *)catalogMetadata {
  return @{@"breadcrumbs": @[ @"Activity Indicator", @"Activity Indicator" ],
           @"description": @"Activity Indicator is a visual indication of an app loading content. It can display how "
           @"long an operation will take or visualize an unspecified wait time.",
           @"primaryDemo": @YES,
           @"presentable": @YES};
}

Source changes

API changes

CBCBreadcrumbs

new constant: CBCBreadcrumbs

CBCNode

new property: metadata in CBCNode

removed property: nodeDescription in CBCNode

modified method: -exampleDescription in CBCNode

Type of change: Swift declaration
From: func exampleDescription() -> String
To: func exampleDescription() -> String?

modified method: -exampleDescription in CBCNode

Type of change: Declaration
From: - (nonnull NSString *)exampleDescription;
To: - (nullable NSString *)exampleDescription;

CBCRelatedInfo

new constant: CBCRelatedInfo

CBCIsDebug

new constant: CBCIsDebug

CBCIsPresentable

new constant: CBCIsPresentable

CBCIsPrimaryDemo

new constant: CBCIsPrimaryDemo

CBCDescription

new constant: CBCDescription

CBCStoryboardName

new constant: CBCStoryboardName

2.4.1

Add exampleRelatedInfo to the CBCNode header for external invocation.

Source changes

2.4.0

  • Now you can add the method catalogRelatedInfo that returns an NSURL to your example, if you wish to link to related information and resources.
  • A performance improvement when fetching all viable classes to build the navigation tree.

Source changes

2.3.1

minor bug fix introduced in 2.3.0 that returns wrong boolean values.

Source changes

2.3.0

This minor release adds two new functionalities that support our new Dragons app.

New features

It's now possible to call CBCCreatePresentableNavigationTree to create a navigation tree that only consists of examples that implement the catalogIsPresentable method and return YES to it. CBCNode now has a new property called debugLeaf which is also a CBCNode. If an example implements the catalogIsDebug method and returns YES, then that example will become the debugLeaf. When the debugLeaf is set, then in the Dragons app it will become the initial view controller in the navigation. NOTE: If there are multiple examples that return YES to catalogIsDebug then the last class that is parsed while going through the hierarchy is the one to be set as the debugLeaf.

Source changes

Non-source changes

2.2.0

This minor release introduces support for Carthage.

New features

It's now possible to define multiple paths to a single example. Simply return an array of arrays of breadcrumbs from the catalogBreadcrumbs implementation.

Source changes

Non-source changes

2.1.1

  • Fixed a crashing bug on iOS 10.3.1.

2.1.0

  • Add tvOS as a platform.

2.0.1

  • Fixed some warnings.

Source changes

2.0.0

  • Upgraded to Swift 3.
  • Resolved nullability warning in CBCNodeListViewController.

Source changes

Non-source changes

1.0.1

1.0.0

  • Initial release.

Includes support for examples and unit tests by convention.