Using ObservableObject to easily update model data and have those changes sync with your UI.Ĭreating an application About pane with custom content in just a few lines. This, for example, is all we need to load some JSON: This is using the new async/await syntax which is familiar to Javascript users. These make creating UIs a breeze, with familiar chainable syntax like: This menu is a combination of normal menu items and custom views.Ĭustom NowPlaying and Track SwiftUI views KyanBar provides a custom menu upon clicking the icon. They normally show some kind of status or provide some common utility function. Menu bar apps are the applications you see in the top right hand of your screen (the menu bar). So let’s have a quick run through the app and its features. KyanBar gives quick and easy access to our much-loved Jukebox as well as employee essentials such as Lattice (performance and engagement platform), the Kyan handbook, and holiday booking. During the build and whilst searching the web for solutions when I got stuck, I was surprised by how few templates for this kind of app were out there. I wanted it to be simple, use some common, interesting features, and also act as a template that other people could copy and use. It was also an excuse to also try some of the newer language features like async/await.Īs is normal, coming up with an idea of something to build is always harder than building the thing itself, so rebuilding the existing KyanBar app seemed the easiest choice. So having a play with the new language and building tools seemed like a fun challenge. I’d not used either of these before, and to be honest, the last native Mac app I had built was in Objective-C using Interface builder. SwiftUI is Apple’s prefered way to build “great-looking apps across all Apple platforms with the power of Swift”. My colleague Scott recently gave a great dev talk on SwiftUI (which you can watch here), and this piqued my interest. You can also read more about our office jukebox here:īuilding our own office Jukebox using Mopidy, NodeJS and React It also allowed us to see what was playing on our office jukebox. It was simple, and would allow us to link to some useful services we use. Eight years ago we used RubyMotion (remember that?) to build a simple Mac utility app that we could all install.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |