Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lukakerr/openquickly
A custom 'open quickly' window that imitates macOS' Spotlight
https://github.com/lukakerr/openquickly
cocoa macos swift
Last synced: 15 days ago
JSON representation
A custom 'open quickly' window that imitates macOS' Spotlight
- Host: GitHub
- URL: https://github.com/lukakerr/openquickly
- Owner: lukakerr
- License: mit
- Created: 2019-02-25T10:15:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T01:18:09.000Z (over 5 years ago)
- Last Synced: 2024-08-01T16:56:08.080Z (3 months ago)
- Topics: cocoa, macos, swift
- Language: Swift
- Homepage:
- Size: 45.9 KB
- Stars: 122
- Watchers: 3
- Forks: 11
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenQuickly
[![Swift 5](https://img.shields.io/badge/swift-5-orange.svg?style=flat)](https://github.com/apple/swift)
[![Platform](http://img.shields.io/badge/platform-macOS-red.svg?style=flat)](https://developer.apple.com/macos/)
[![Github](http://img.shields.io/badge/github-lukakerr-green.svg?style=flat)](https://github.com/lukakerr)A custom 'open quickly' window that imitates macOS' Spotlight, written in Swift.
### Installation
#### CocoaPods
```ruby
pod 'OpenQuickly', :git => 'https://github.com/lukakerr/OpenQuickly.git'
```### Usage
A demo can be found at [OpenQuickly Demo](./OpenQuickly%20Demo). Everything outlined below
can be found in the [OpenQuickly Demo ViewController](./OpenQuickly%20Demo/ViewController.swift).Most of the functionality is provided already, but some options can be implemented to control the look and feel of the OpenQuickly dialog.
#### Options
Options include:
- Font used
- Radius of window
- Width and height of window
- Max number of matches shown
- Height of each matches row
- Placeholder text
- Whether to persist the window position
- Padding (i.e. edge insets)
- Material (i.e. theme/window appearance)If there are any options you think are missing, please raise an issue.
#### Delegate
You must set your `OpenQuicklyOptions` instance's delegate to a class that conforms to `OpenQuicklyDelegate`.
This allows you to get when an item was selected, return an array of matches when a value is
typed into the search field, and provide your own custom view to be used as the view for each
row in the matches list.### Screenshots