-rw-r--r-- 506B Apr 3, 2024 · BC252B6 · ~1 min

Modulbank informer 1.3

macos приложения модульбанк open source

Modulbank Informer 1.3

Released a small update for Modulbank Informer. Updated the status bar icon (now more recognizable) and added a checkbox to hide accounts with zero balance. Plus, some minor refactoring.

Source code on GitHub: https://github.com/makoni/ModulbankInformer
You can download it here: https://github.com/makoni/ModulbankInformer/releases

[↵] open page modulbank-informer-1-3.md
-rw-r--r-- 2.4K Mar 30, 2024 · E0344BE · ~2 min

How to get selected text inside of TextEditor in SwiftUI on macOS

swiftui macos

How to get selected text inside of TextEditor in SwiftUI on macOS

TextEditor in SwiftUI still doesn’t have any API to get user selection. But since it’s using NSTextView internally we can subscribe to its notifications.

Here’s an example of getting a substring from user selection:

[↵] open page how-to-get-selected-text-inside-of-texteditor-in-swiftui-on-macos.md
-rw-r--r-- 836B Mar 29, 2024 · EA452FF · ~1 min

Swift CouchDB client 1.3.2

swift couchdb swift package vapor open source

Swift CouchDB client

Recently, there have been a couple of new releases for my Swift CouchDB library. Here are the recent changes:

  • dateDecodingStrategy and dateEncodingStrategy can now be passed as parameters for get, update and insert methods.
  • Added a check to handle expired authentication cookies.
  • Comparing the set-cookie header in the response as lowercased.
  • Introduced new methods to utilize the _find API, allowing you to find documents using a declarative JSON querying syntax
  • Fixed an issue where the update method didn’t use dateEncodingStrategy parameter.

CouchDB Client on GitHub | Documentation with examples and tutorials.

[↵] open page swift-couchdb-client-1-3-2.md
-rw-r--r-- 1.2K Oct 10, 2023 · d68e288 · ~1 min

AppMetric 1.8

macos приложения appmetric appmetrica

AppMetric 1.8

I’ve updated AppMetric for macOS — a client for Yandex’s AppMetrica service. The previous version, sadly, stopped working when they changed their response format.

From what I’ve been able to figure out, I was using something undocumented in their response. And judging by the current API responses, that was the number of crashes. Unfortunately, I had to remove it and replace it with the number of devices.

Since I finally got my hands on it, I decided to bring it up to date. Reworked everything in SwiftUI, but had to wrap the popup itself in good old NSPopover, because MenuBarExtra from SwiftUI is far too limited. Maybe I’ll get around to writing a separate post about it. While I was at it, I migrated everything to Swift Concurrency and SF Symbols. The catch is that it now requires macOS 13+, but I assume the people who find it useful keep their Macs up to date too. And, of course, finally — native Apple Silicon support.

The update went through review today and is available for download. In the future I’d like to add per-day/per-week charts.

Download

[↵] open page appmetric-1-8.md
-rw-r--r-- 706B Mar 29, 2023 · 88035de · ~1 min

Modulbank Informer

macos приложения модульбанк open source

Modulbank Informer

Recently I noticed that Modulbank, the bank I use, has a public API. Since they don’t have a macOS app, and their iOS app doesn’t run on Apple Silicon (a security restriction on their side), I built a small informer that shows the list of accounts and balances in the status bar.

The app requires macOS 13+ — I wanted to squeeze the latest features out of SwiftUI and get some practice while I was at it.

Source on GitHub: https://github.com/makoni/ModulbankInformer
Download: https://github.com/makoni/ModulbankInformer/releases

[↵] open page modulbank-informer.md
-rw-r--r-- 973B Dec 26, 2022 · BE2067B · ~1 min

Swift CouchDB client 1.2.1

swift couchdb swift package vapor open source

Swift CouchDB client 1.2.1

Just a small update for Swift CouchDB client lib with couple new methods that I needed by myself:

  • Added a new method to create a database [docs].
  • Added a new method to delete a database [docs].
  • Added a new method to check if a database exists [docs].
  • Every request handles unauthorised errors now.
  • CouchDBClientError model has a description text now.

CouchDB Client on GitHub | Documentation with examples and tutorials.

[↵] open page swift-couchdb-client-1-2-1.md
makoni@arm1:~/blog$ cd ../page-6/ // ← previous cd ./page-8/ // more posts →