Skip to content

Commit

Permalink
Re-enable the inspector picker
Browse files Browse the repository at this point in the history
This is crucial for being able to switch between current tool settings
and the document metadata.
  • Loading branch information
alicerunsonfedora committed Jan 18, 2025
1 parent 0ab056c commit 1cb4f6c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Grids.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = Grids/Grids.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"Grids/Preview Content\"";
DEVELOPMENT_TEAM = FQQXSP79X3;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -483,7 +483,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = Grids/Grids.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"Grids/Preview Content\"";
DEVELOPMENT_TEAM = FQQXSP79X3;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down
13 changes: 11 additions & 2 deletions Grids.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
{
"originHash" : "2e82b6274a3716f02a65c755d71fd3327a800cfeb9a36fb6e5b3bb6c8973658c",
"originHash" : "6e23f89b28611d4c56ab9ea0a47c07b01039f5b75434f98c91354fc5366d4dd1",
"pins" : [
{
"identity" : "puzzlekit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/alicerunsonfedora/puzzlekit",
"state" : {
"branch" : "main",
"revision" : "39fc51082f286d4a524b476c21da87ebeb4feff5"
"revision" : "5f66f177da02763633bc51c4c4ffbc03ba610ab3"
}
},
{
"identity" : "swiftlintplugins",
"kind" : "remoteSourceControl",
"location" : "https://github.com/SimplyDanny/SwiftLintPlugins",
"state" : {
"revision" : "7a3d77f3dd9f91d5cea138e52c20cfceabf352de",
"version" : "0.58.2"
}
}
],
Expand Down
6 changes: 6 additions & 0 deletions Grids/Resources/Localizable.xcstrings
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"sourceLanguage" : "en",
"strings" : {
"" : {

},
"%lld x %lld" : {
"localizations" : {
"en" : {
Expand Down Expand Up @@ -37,6 +40,9 @@
},
"Current Tool" : {

},
"Do you remember the maze?" : {

},
"General" : {

Expand Down
18 changes: 9 additions & 9 deletions Grids/Views/Inspectors/GridEditorInspector.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ struct GridEditorInspector: View {
@State private var currentPane = GridEditorInspectorPane.currentTool

var body: some View {
// Picker("", selection: $currentPane) {
// ForEach(GridEditorInspectorPane.allCases, id: \.self) { mode in
// Label(mode.name, systemImage: mode.icon)
// .tag(mode)
// }
// }
// .pickerStyle(.segmented)
// .labelStyle(.iconOnly)
// .padding([.top, .leading, .trailing])
Picker("", selection: $currentPane) {
ForEach(GridEditorInspectorPane.allCases, id: \.self) { mode in
Label(mode.name, systemImage: mode.icon)
.tag(mode)
}
}
.pickerStyle(.segmented)
.labelStyle(.iconOnly)
.padding([.top, .leading, .trailing])

Form {
Group {
Expand Down

0 comments on commit 1cb4f6c

Please sign in to comment.