-rw-r--r-- 1.2K Apr 16, 2025 · B2756B3 · ~1 min

CouchDB client for Swift version 2

swift couchdb swift package vapor open source

CouchDB client for Swift version 2

Recently, I’ve released a few new versions of the CouchDB client for Swift. The latest version is version 2, and it includes several key changes:

  • Updated the minimum required Swift tools version to 6.0.
  • Adopted Swift Concurrency. CouchDBClient has been updated to be an actor.
  • Renamed the library from couchdb-vapor to couchdb-swift to better reflect its purpose as a general CouchDB client for Swift, beyond Vapor-specific use cases.
  • Made some changes to the initializer. Instead of passing a lot of parameters, it now accepts a Config structure.
  • You can pass your own HTTPClient instance to be used in the client.
  • Added translations for error messages.
  • Introduced a dedicated tutorial for integrating CouchDBClient with the Hummingbird server-side framework.
  • Added a shutdown() method to properly release resources associated with the HTTPClient.

CouchDB Client on GitHub | Documentation with examples and tutorials.

Star Fork

[↵] open page couchdb-client-for-swift-version-2.md
-rw-r--r-- 1.3K Jan 14, 2025 · D4F1C96 · ~1 min

Adding translations to an app or a package with AI help

xcode ai localization

Translated String Catalog

In the previous article, I've explained how to add a Strings Catalog to a Swift package to support localizations. Now, we'll try to translate it into more languages.

[↵] open page adding-translations-to-an-app-or-a-package-with-ai-help.md
-rw-r--r-- 2.8K Jan 14, 2025 · AFA035E · ~2 min

Localizing a Swift Package with a String Catalog

localization swift package manager xcode

Recently, I've been working on a Swift Package with some strings that I wanted to localize. Apple's documentation on this topic seems to be a bit outdated. The documentation still suggests using language-specific directories for localizing resources and strings.

But, at WWDC 2023, Apple introduced String Catalogs. It's much more handy - just a JSON file that Xcode can fill with all the strings that need to be localized. Most of the examples you can find are about apps, not packages. So, I've spent some time trying to figure out how to use String Catalogs in a Swift package.

[↵] open page localizing-a-swift-package-with-a-string-catalog.md
-rw-r--r-- 1.2K Sep 20, 2024 · 7339962 · ~1 min

Funny thing in macOS Sequoia with iPhone Mirroring

macOS iPhone Mirroring

One of the new features in macOS Sequoia is iPhone Mirroring. You can connect to your iPhone, see its screen and control it.

My Mac is using 2 folders to store apps: one is in the user folder ~/Applications, the second is the system applications folder at /Applications.

One day I created a search filter in Finder and saved it to have all the available apps in one place, also did put it to the sidebar in the Favourites section.

But also I love to have a shortcut in the Dock. So I've added a grid here too. It worked as I expected until I updated to macOS Sequoia and tried the iPhone Mirroring app once. Now the grid shows some apps from my iPhone too:

An interesting thing is that only Dock's grid shortcut shows the apps from my iPhone, but not the search in Finder.

And here comes the funny part - that's what you'll see if you will try to launch an app from your iPhone:

macOS 18.0 or later? Really? I wonder if that's some feature planned for a future macOS update. Will see :)

[↵] open page funny-thing-in-macos-sequoia-with-iphone-mirroring.md
-rw-r--r-- 963B May 27, 2024 · D7B1A59 · ~1 min

AppMetric 1.12.0

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

AppMetric 1.12.0

An update for AppMetric, version 1.12.0, has been released. I've been working on it in my spare time. What's new in recent versions:

  • Apple reviewers, for some reason, don't like OAuth authorization via Safari anymore, so I had to redo it using an embedded window with WKWebView. I hope that in the next SwiftUI, its own WebView will finally appear, so I won't have to use a wrapper anymore.
  • Added a button for quick access to app statistics on the Appmetrica website.
  • Added viewing of statistics as charts — both for each individual metric and all metrics combined. All this just 7 years after one of the users requested adding charts :)
  • Added interface translation into several languages. Fortunately, with the help of AI, it has become very easy.

Download

[↵] open page appmetric-1-12-0.md
-rw-r--r-- 1.7K May 24, 2024 · 36FC52C · ~2 min

Revamping Documentation with AI

documentation ai developer tools copilot gemini

Revamping Documentation with AI

Recently, I’ve been updating docs for the CouchdbClient library. After struggling with some phrases, I decided to try AI to do that for me. Microsoft has Copilot as part of Bing search in the Edge browser.

[↵] open page revamping-documentation-with-ai.md
makoni@arm1:~/blog$ cd ../page-4/ // ← previous cd ./page-6/ // more posts →