Skip to content

A Swift provider to gather information about a user's focused application

License

Notifications You must be signed in to change notification settings

jimmyhillis/Focused.swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Focused.swift

An easy way to get text information about the currently focused app on OS X.

Example

import Focused

if let highlightedText = Focused.highlightedText() {
    popoverController.text = highlightedText
}
else {
    popoverController.text = Focused.elementText()
}

Installation

CocoaPods

The recommended way of installing Focused.swift is with the CocoaPods dependency manager.

Update your Podfile:

use_frameworks!
pod 'Focused', git: 'https://github.com/jimmyhillis/Focused.swift'

Manually

Copy and paste Focused.swift into your project code.

Next steps?

Return positioning information about the focused app for overlay positioning of external applications.

About

A Swift provider to gather information about a user's focused application

Resources

License

Stars

Watchers

Forks

Packages

No packages published