ButtonIndicatorView
Button with indicator when doing some action(passed as block), often used as LikeButton
Install / Use
/learn @liaojinxing/ButtonIndicatorViewREADME
ButtonIndicatorView
Button with indicator when doing some action(passed as block), often used as LikeButton


Installation
- Grab the source file into your project.
- Or use cocoapods. Here is an example of your podfile:
pod 'ButtonIndicatorView'
Usage
####Basic Usage
ButtonIndicatorView *buttonIndicatorView = [[ButtonIndicatorView alloc] initWithFrame:frame likeBlock:likeBlock unLikeBlock:unLikeBlock];
And Implement your like and unlike action block according to your requirement.
####Customize your ButtonIndicatorView: Inherit from ButtonIndicatorView, and implement the subclass method to customize your button style:
- (void)updateButtonStyleLiked:(BOOL)isLiked
{
if (isLiked) {
// liked style
} else {
// not liked style
}
}
See LikeButtonIndicatorView as example:
License
ButtonIndicatorView is available under the MIT license. See the LICENSE file for more info.
Related Skills
node-connect
340.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.2kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.2kCommit, push, and open a PR
