Skip to content

aheze/Squirrel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Squirrel

🐿️ Pronounced: Scroll-Wheel

A menu bar app that adds scrolling to the simulator.

  • For some reason, you can't scroll in Xcode's simulator.
  • This app enables scrolling again!
  • Features: customizable settings, made with SwiftUI, and a cute squirrel.

Installation

You can download Squirrel on the App Store.

Alternatively, get the ZIP file, or use Homebrew:

brew install hkamran80/things/squirrel-for-simulator

Note: Squirrel requires macOS Big Sur (11.0) or higher.

Screenshots

Main Menu Advanced Settings
Light Mode
Menu Bar
Dark Mode
Menu Bar Dark Mode
Menu Bar Expanded
1. You start scrolling 2. Squirrel drags on the screen for you 3. Your cursor auto-snaps back to where you started
Screenshot of simulator Screenshot of simulator, blue pointer shown at initial cursor position. Cursor is dragged higher up. Screenshot of simulator, cursor is back at its original position.

Videos

Squirrel.mp4
Simulator.mp4

Notes

  • Press ESC to stop scrolling in case something bugs out.
  • Trackpad support is currently unstable, but most scroll wheels / mice should work.
  • Customization Reference - General:
    • Enabled - whether Squirrel is active.
    • Natural Scrolling - toggles the scroll direction.
    • Pointer Color - the color of the cursor pointer.
    • Pointer Size - the length of the pointer.
    • Pointer Opacity - the opacity.
    • Pointer Scale - scale the pointer by this when scrolling starts.
  • Customization Reference - Advanced:
    • Launch Simulator On Startup - launch the Simulator when Squirrel starts.
    • Quit If Simulator Is Closed - auto-quit the app when the Simulator isn't active.
    • Scroll Steps - how many iterations to get to the final scroll value.
    • Inactivity Timeout - how many seconds to wait before stopping scroll.
    • Scroll Interval - how often to execute a scroll step.
    • Top Inset - top insets to cancel out simulator bezels. Only allow scrolling when the cursor falls inside the inset frame.
    • Left Inset - same as above for the left side.
    • Right Inset - same as above for the right side.
    • Bottom Inset - same as above for the bottom side.
    • Simulator Location - the file path of the simulator, for Launch Simulator on Startup.
    • Simulator Check Frequency - how often to check if the simulator is alive, for Quit If Simulator Is Closed.
    • Max Height - the maximum height of the menu popover.
    • Menu Width - the width of the menu popover.

Community

Author Contributing Need Help?
Squirrel is made by aheze. All contributions are welcome. Just fork the repo, then make a pull request. Open an issue or join the Discord server. You can also ping me on Twitter. Or read the source code — there's lots of comments.

How does it work?

Squirrel uses your Mac's accessibility controls to simulate a "drag" gesture.

Apple, if you're reading this:

Please add native scroll support to the Simulator! Feels like such a small feature but it'll be very welcome.

License

MIT License

Copyright (c) 2023 A. Zheng

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.