Blog

Version 1.2

Support for Internationalization: German translation Added basic Voice Over support (Aria Live Region) Added Keyboard Shortcut (ctrl + alt + o) Added highlight & search – will search base-search.netto use: highlight text and use right-click to select OA Search for… menu option Improved handling of “inactive” state

Version 1.1

Improved DOI Detection for: PubMed.gov ieeexplore.ieee.org nber.org base-search.net WebScraper OA Detection for: IngentaConnect base-search.net ieeexplore.ieee.org journals.sagepub.com academic.oup.com Introduced DOI validation Using 5 Regular Expressions from CrossRef Refactored function to compare current URL to target URL Fixed several bugs, where JSON parsing failed, due to unexpected data conditions Introduced a proper About Page Updated Help Menu […]

Swift 4: An extension to define UIColors with “normal” RGB values and set some named colors

UIColors require you to enter red, green and blue as values between 0 and 1. In pracitcal terms that means you need to divide your values by 255 to obtain the CGFloat required. Easy enough? Surely! Still it is a tad annoying, especially as the rest of the world will give you RGB values between […]

Swift 4: Pull To Refresh / UIRefreshControl

TableViews can have a useful feature to refresh the data inside of them, simply pull to refresh. Apple didn’t invent this, that was Loren Brichter of Tweetie, which was sold to Twitter and Twitter was eventually granted a Patent for the feature. Today this feature is absolutely ambiguous and very easy to implement. For example, […]

Swift 4: Convert Unix Timestamp to a nicely formatted Date & Time

I needed to convert a Unix Timestamp, which for some inexplicit reason was being returned as a String by an API I was using and this is the super foolish function I ended up with. I am not going to shame the API Provider for returning a timestamp as a String 😉 func createDateTime(timestamp: String) […]

Swift 4: scale image to width

For an app that I was writing I needed an easy function to scale an image to a specific width, the function below will accomplish this: func scaleImageWidth(sourceImage:UIImage, scaledToWidth: CGFloat) -> UIImage { let oldWidth = sourceImage.size.width let scaleFactor = scaledToWidth / oldWidth let newHeight = sourceImage.size.height * scaleFactor let newWidth = oldWidth * scaleFactor […]

Scroll to top