This repository has been archived by the owner on Jan 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
121 additions
and
22 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
// | ||
// ZSWTappableLabel.h | ||
// ZSWTappableLabel | ||
// | ||
// Copyright (c) 2019 Zachary West. All rights reserved. | ||
// | ||
// MIT License | ||
// https://github.com/zacwest/ZSWTappableLabel | ||
// | ||
|
||
#import <UIKit/UIKit.h> | ||
|
||
|
||
|
||
NS_ASSUME_NONNULL_BEGIN | ||
@interface ZSWTappableLabel : UILabel | ||
@end | ||
#pragma mark - Attributes you include in strings | ||
|
||
NSAttributedStringKey const ZSWTappableLabelHighlightedBackgroundAttributeName | ||
NS_SWIFT_NAME(tappableHighlightedBackgroundColor) = @"ZSWTappableLabelHighlightedBackgroundAttributeName"; | ||
|
||
NSAttributedStringKey const ZSWTappableLabelHighlightedForegroundAttributeName | ||
NS_SWIFT_NAME(tappableHighlightedForegroundColor) = @"ZSWTappableLabelHighlightedForegroundAttributeName"; | ||
|
||
NSAttributedStringKey const ZSWTappableLabelTappableRegionAttributeName | ||
NS_SWIFT_NAME(tappableRegion) = @"ZSWTappableLabelTappableRegionAttributeName"; | ||
|
||
@protocol ZSWTappableLabelTapDelegate | ||
|
||
- (void)tappableLabel:(ZSWTappableLabel *)tappableLabel | ||
tappedAtIndex:(NSInteger)idx | ||
withAttributes:(NSDictionary<NSAttributedStringKey, id> *)attributes; | ||
@end | ||
|
||
NS_ASSUME_NONNULL_END |
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 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