I've been working on this library since the start ...
# feed
s
I've been working on this library since the start of this week, and here is the first alpha version of it ready to be used and tested. First, let's talk about why did I have to create this library in the first place? Honestly speaking, creating a custom splash screen for your Compose Multiplatform desktop is not a big deal, but it still requires you to write a few lines of boilerplate code here and there. Still, it's not a big deal for a single project, but as you start working more and more with CMP for desktop, you'll find yourself writing the same logic again and again, which is not a good thing in my opinion. So I decided to build this library to save you from doing it. Give it a try and let me know what you think about it. https://github.com/sudarshanmhasrup/splashify
p
Instead of an intentional delay, did you research if there are any existing native desktop API for App Startup or SplashScreen per se. You could add an API where clients of the library subscribe many
interface Initializer { ... }
and your library runs all these Initializer tasks in a background thread while you play the SplashScreen. Meant to be for SDK initialization, DB migrations, any minimal requirement needed before the App starts. Is important to notice this type of API is only for local work. Not meant to be for network request and such
s
Thanks for the suggestion @Pablichjenkov. That’s an interesting idea. For now, the library focuses on simplifying splash UI and reducing boilerplate. I’ll definitely keep this in mind for future improvements.
👍 1