Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages