Skip to content

Commit

Permalink
refactor: 0.2 versioning for breakable data model
Browse files Browse the repository at this point in the history
  • Loading branch information
buzsh committed Mar 8, 2024
1 parent 1049927 commit 56e8023
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 deletions.
8 changes: 4 additions & 4 deletions SwiftDiffusion.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1433,7 +1433,7 @@
CODE_SIGN_ENTITLEMENTS = SwiftDiffusion/SwiftDiffusion.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1100;
CURRENT_PROJECT_VERSION = 2000;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"SwiftDiffusion/Preview Content\"";
DEVELOPMENT_TEAM = 85N3S3DG8M;
Expand All @@ -1447,7 +1447,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 0.1.1;
MARKETING_VERSION = 0.2;
PRODUCT_BUNDLE_IDENTIFIER = com.buzsh.SwiftDiffusion;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand All @@ -1463,7 +1463,7 @@
CODE_SIGN_ENTITLEMENTS = SwiftDiffusion/SwiftDiffusion.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 1100;
CURRENT_PROJECT_VERSION = 2000;
DEAD_CODE_STRIPPING = YES;
DEVELOPMENT_ASSET_PATHS = "\"SwiftDiffusion/Preview Content\"";
DEVELOPMENT_TEAM = 85N3S3DG8M;
Expand All @@ -1477,7 +1477,7 @@
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 14.0;
MARKETING_VERSION = 0.1.1;
MARKETING_VERSION = 0.2;
PRODUCT_BUNDLE_IDENTIFIER = com.buzsh.SwiftDiffusion;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
Expand Down
16 changes: 6 additions & 10 deletions SwiftDiffusion/Views/MainViews/ContentView/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,28 @@ struct ContentView: View {
@EnvironmentObject var currentPrompt: PromptModel
@EnvironmentObject var loraModelsManager: ModelManager<LoraModel>
@EnvironmentObject var vaeModelsManager: ModelManager<VaeModel>

@ObservedObject var userSettings = UserSettings.shared
@ObservedObject var pastableService = PastableService.shared
@ObservedObject var scriptManager = ScriptManager.shared

// App States
@State private var scriptManagerObserver: ScriptManagerObserver?
@ObservedObject var pastableService = PastableService.shared

@AppStorage("hasLaunchedBeforeTest") var hasLaunchedBefore: Bool = false
// OnboardingBetaView
@State private var showingBetaOnboardingSheetView: Bool = false

// RequiredInputPaths
@State private var showingRequiredInputPathsView = false
@State private var hasDismissedRequiredInputPathsView = false
@State private var isPulsating = false

// TabView
// Dev TabView
@State private var selectedView: ViewManager = .prompt
@State private var hasLaunchedPythonEnvironmentOnFirstAppearance = false

// Detail
// DetailView
@StateObject var fileHierarchy = FileHierarchy(rootPath: "")
@State var selectedImage: NSImage? = nil
@State var lastSelectedImagePath: String = ""
@State var lastSavedImageUrls: [URL] = []
@State var imageCountToGenerate: Int = 0

// NavigationSplitView
@State private var columnVisibility = NavigationSplitViewVisibility.all

var body: some View {
Expand Down

0 comments on commit 56e8023

Please sign in to comment.