After looking around and wasting time for a solution to make the annotation.json for CreateML, I just went ahead and wrote a plugin for Photoshop (I've been trying to get it on the Plugin Marketplace, but there are too many hoops to jump through for a simple plugin). You can use the slice tool and the name feature to label your region, then just export. I recommend saving each file as a PSD since it retains the slice data. The tool will export as a PNG for you in the folder. Just open as many files as you want in the annotation.json file. Hope this helps! I don't really have a way to share it here, since Dropbox links and such do not work... So you will have to message me for it.
Post
Replies
Boosts
Views
Activity
After looking around and wasting time for a solution to make the annotation.json for CreateML, I just went ahead and wrote a plugin for Photoshop (I've been trying to get it on the Plugin Marketplace, but there are too many hoops to jump through for a simple plugin). You can use the slice tool and the name feature to label your region, then just export. I recommend saving each file as a PSD since it retains the slice data. The tool will export as a PNG for you in the folder. Just open as many files as you want in the annotation.json file. Hope this helps!
I don't really have a way to share it here, since Dropbox links and such do not work... So you will have to message me for it.
For SwiftUI I found the best thing to do is use the UINavigationBarAppearance() method, then add the .id() to the NavigationView. This will automatically redraw the component when the color changes. Now you can have reactive color changes based on a state engine.
let custom = UINavigationBarAppearance()
custom.configureWithOpaqueBackground()
custom.backgroundColor = color
UINavigationBar.appearance().standardAppearance = custom
UINavigationBar.appearance().scrollEdgeAppearance = custom
UINavigationBar.appearance().compactAppearance = custom
UINavigationBar.appearance().compactScrollEdgeAppearance = custom
Then in the SwiftUI
NavigationView {
content
}
.id(color.description)