nostr:npub1g0epzm4egfx6mda7pug9r4fwqpqzky6524zjev39tnjrp66g70eqdtz7dp Do you see a feasible way to convert Cove into a Swift package?

Can Swift packages call external, different language libraries like BDK?

How easily could the Cove architecture switch to using a different Bitcoin library in place of BDK? Or would that equate a complete rewrite?

Reply to this note

Please Login to reply.

Discussion

Hey what is your end goal?

Most of the logic for Cove is written in rust, using BDK directly for the wallet functions. Just the UI is written in swift.

Apologies, I assumed more Swift components from the Git stats.

I try to find a wallet option that can build on iPadOS in Swift Playgrounds. I see this as a critical prerequisite for more self custody adoption.

I haven’t used Swift Playgrounds too much so i’m not sure what you mean.

I do plan on supporting iPad in the future tho.

Swift Playgrounds offers the only manufacturer sanctioned, therefore only available IDE on iPadOS. It does many things XCode does, just Swift only, no Objective-C support. It also relies on the Swift package format for code libraries. If you want people to use tech, they need a way to understand and evaluate it themselves. Few people voluntarily use desktops, many happily use mobile devices.

Auto Layout support sounds great too, different thing though.