improved caching in utility methods

This commit is contained in:
John Estropia
2019-10-12 10:02:00 +09:00
parent 5af0d17de4
commit 12c58e3955
10 changed files with 307 additions and 112 deletions

View File

@@ -51,6 +51,6 @@
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
<key>UIUserInterfaceStyle</key>
<string>light</string>
<string>Light</string>
</dict>
</plist>

View File

@@ -39,7 +39,7 @@ struct SwiftUIView: View {
var body: some View {
NavigationView {
List {
ForEach(palettes.sections, id: \.self) { (sectionID) in
ForEach(palettes.sectionIdentifiers, id: \.self) { (sectionID) in
Section(header: Text(sectionID)) {
ForEach(self.palettes[section: sectionID], id: \.self) { palette in
NavigationLink(
@@ -118,7 +118,6 @@ struct SwiftUIView: View {
self.needsShowAlert = true
}
}
.colorScheme(.dark)
}
@State