Copy the animation patterns as a starting point for building an expressive, character-driven login screen in your own iOS app.
Study how UIPropertyAnimator ties animation progress directly to text field input to create interactive, interruptible animations.
Use the included Affinity Designer source file as a reference for creating vector character assets that can be animated as separate parts.
Clone and open in Xcode, no external dependencies or API keys required.
LoginCritter is an iOS animation demo written in Swift that shows a small cartoon bear character responding to a login screen in real time. As a user types their email address, the bear's head rotates to follow the text. When the user taps the password field, the bear covers its eyes with its paws. Typing an @ symbol into the email field makes the bear look excited. Toggling the "show password" button causes the bear to peek through its paws. The project was built as a creative exercise inspired by an animated login form concept posted on the design community Dribbble. The author wanted to recreate that kind of playful, character-driven login screen in native iOS code. Technically, the animations are driven by UIPropertyAnimator, an iOS framework for building interactive and interruptible animations. The bear's head rotation is tied directly to how far along the user is in typing: as more characters fill the text field, the animator advances proportionally. The bear is made up of separate vector image parts, each of which can be animated independently. The character has several named states: neutral (resting), active (following text input), ecstatic (triggered by the @ character), shy (covering eyes when the password field is active), and peek (partially uncovering eyes when the show-password button is toggled). States can combine, so the bear can be both ecstatic and actively tracking text at the same time. The bear's visual assets were created in Affinity Designer and stored as vector PDFs in the repository. The raw design file is also included. The project is distributed under the MIT license and is intended as an example and reference for iOS developers interested in building expressive UI animations.
← cgoldsby on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.