EMHint
EMHint is an iOS class group that easily adds a spotlight-like effect to a view highlighting or hinting at something that may be important on the screen.The protocols of EMHintDelegate allow users to override many of the default actions and views. Tapping the black overlay fades it away. Great for quick "how to" or tutorials in your app.
Install / Use
/learn @mcconkiee/EMHintREADME
EMHint
Overview
EMHint is an iOS class group that easily adds multiple spotlight-like effects to a view highlighting or hinting at some things that may be important on the screen.The protocols of EMHintDelegate allow users to override many of the default actions and views. Tapping the black overlay fades it away.
Great for quick "how to" or tutorials in your app.
Installation
- Drop in EMHint (.h/.m) & EMHintsView (.h/.m)
- Pick a logical place to manage EMHintDelegate protocol implementation and conform to
<EMHintDelegate>. - #import "EMHint.h"
- Call a new hint using the instance method
presentModalMessage:(NSString*)message where:(UIView*)presentationPlace - You must implement
(CGRect)hintStateRectToHint:(id)hintStateOR-(UIView*)hintStateViewToHint:(id)hintState- without one, you will throw an exception. By doing so, EMHint can understand the radius of the spotlight to draw, and where-abouts.
See the example app (HintMakerExample)in this build for more.
Tips
- It's possible to "daisy chain" hints. See the
HintHelper.mclass for a quick overview of using enums and protocol methods - Custom views can be added inplace of the default white text. Useful if you need to add a view or label not at center, or any custom graphics, etc
- return CGRectMake(0,0,1,1) for an all black bg without spotlight….CGRectZero will fail.
- Not ARC compliant….later.
Todo's (limitations)
- add rectangular spotlight (and other shapes)
- different background colors/alpha/etc
- support rotation (currently only label and background do so)
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate 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
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
