Skip to content

Commit

Permalink
Update VTAcknowledgement to explicitly mark init as unavailable
Browse files Browse the repository at this point in the history
  • Loading branch information
vtourraine committed Sep 15, 2017
1 parent 73ab304 commit 43962f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Support “readable content guide” on `VTAcknowledgementViewController`
- Fix iPhone X layout
- Update `VTAcknowledgement` public interface to mark `init` method as unavailable

[Full Changelog](https://github.com/vtourraine/VTAcknowledgementsViewController/compare/1.2.1...HEAD)

Expand Down
6 changes: 6 additions & 0 deletions Classes/VTAcknowledgement.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, copy, nullable) NSString *license;

/**
No `init` support, in order to enforce nonnull title and text properties.
Please use `initWithTitle:text:license:` instead.
*/
- (instancetype)init NS_UNAVAILABLE;

/**
Initializes an acknowledgement with a title and a body text.
Expand Down
6 changes: 0 additions & 6 deletions Classes/VTAcknowledgement.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@

#import "VTAcknowledgement.h"

@interface VTAcknowledgement ()

- (instancetype)init NS_UNAVAILABLE;

@end


@implementation VTAcknowledgement

Expand Down

0 comments on commit 43962f6

Please sign in to comment.