diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a1f224..92df941 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Classes/VTAcknowledgement.h b/Classes/VTAcknowledgement.h index 2199159..ba64abc 100644 --- a/Classes/VTAcknowledgement.h +++ b/Classes/VTAcknowledgement.h @@ -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. diff --git a/Classes/VTAcknowledgement.m b/Classes/VTAcknowledgement.m index 069e50c..50afe1f 100644 --- a/Classes/VTAcknowledgement.m +++ b/Classes/VTAcknowledgement.m @@ -23,12 +23,6 @@ #import "VTAcknowledgement.h" -@interface VTAcknowledgement () - -- (instancetype)init NS_UNAVAILABLE; - -@end - @implementation VTAcknowledgement