Skip to content

Instantly share code, notes, and snippets.

View rolandleth's full-sized avatar
🚀
Taking off

Roland Leth rolandleth

🚀
Taking off
View GitHub Profile
@rolandleth
rolandleth / LaunchBar-Theme-Arguments.txt
Created October 27, 2020 07:40 — forked from atika/LaunchBar-Theme-Arguments.txt
A non exhaustive list of LaunchBar theme arguments, extracted with grep from bundled themes, to make your custom themes.
defaultBoldFontName
defaultDimmedTextColor
defaultEmphasizedFontName
defaultFontName
defaultSelectedTextShadowColor@1x
defaultSelectedTextShadowColor@2x
defaultShadowOffset
defaultTextColor
defaultTextShadowColor
defaultTextShadowColor@2x
@rolandleth
rolandleth / updateSafeAreaForKeyboardFromNotification.swift
Created March 29, 2020 18:35 — forked from douglashill/updateSafeAreaForKeyboardFromNotification.swift
Avoid the keyboard by leveraging additionalSafeAreaInsets.
// Avoids the keyboard in a UIKit app by leveraging additionalSafeAreaInsets.
// You can put this in the root view controller so the whole app will avoid the keyboard.
// Only tested on iOS 13.3.
// Made for https://douglashill.co/reading-app/
@objc func updateSafeAreaForKeyboardFromNotification(_ notification: Notification) {
guard let endFrameInScreenCoords = notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? CGRect else {
return
}
// Please consider whether the force unwrap here is safe for your own use case.