feat: set up project

This commit is contained in:
dscyrescotti
2024-05-04 11:26:14 +07:00
parent 4806a4294a
commit 45b63ca0d9
5 changed files with 95 additions and 30 deletions

View File

@@ -8,17 +8,19 @@
/* Begin PBXBuildFile section */
EC7F6BEC2BE5E6E300A34A7B /* MemolaApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC7F6BEB2BE5E6E300A34A7B /* MemolaApp.swift */; };
EC7F6BEE2BE5E6E300A34A7B /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC7F6BED2BE5E6E300A34A7B /* ContentView.swift */; };
EC7F6BF02BE5E6E400A34A7B /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EC7F6BEF2BE5E6E400A34A7B /* Assets.xcassets */; };
EC7F6BF32BE5E6E400A34A7B /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EC7F6BF22BE5E6E400A34A7B /* Preview Assets.xcassets */; };
ECA7387A2BE5EF0400A4542E /* MemosView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ECA738792BE5EF0400A4542E /* MemosView.swift */; };
ECA7387D2BE5EF4B00A4542E /* MemoView.swift in Sources */ = {isa = PBXBuildFile; fileRef = ECA7387C2BE5EF4B00A4542E /* MemoView.swift */; };
/* End PBXBuildFile section */
/* Begin PBXFileReference section */
EC7F6BE82BE5E6E300A34A7B /* Memola.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Memola.app; sourceTree = BUILT_PRODUCTS_DIR; };
EC7F6BEB2BE5E6E300A34A7B /* MemolaApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MemolaApp.swift; sourceTree = "<group>"; };
EC7F6BED2BE5E6E300A34A7B /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
EC7F6BEF2BE5E6E400A34A7B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
EC7F6BF22BE5E6E400A34A7B /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
ECA738792BE5EF0400A4542E /* MemosView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MemosView.swift; sourceTree = "<group>"; };
ECA7387C2BE5EF4B00A4542E /* MemoView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MemoView.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
@@ -51,8 +53,8 @@
EC7F6BEA2BE5E6E300A34A7B /* Memola */ = {
isa = PBXGroup;
children = (
EC7F6BEB2BE5E6E300A34A7B /* MemolaApp.swift */,
EC7F6BED2BE5E6E300A34A7B /* ContentView.swift */,
ECA738762BE5EE4E00A4542E /* App */,
ECA738772BE5EEE800A4542E /* Features */,
EC7F6BEF2BE5E6E400A34A7B /* Assets.xcassets */,
EC7F6BF12BE5E6E400A34A7B /* Preview Content */,
);
@@ -67,6 +69,39 @@
path = "Preview Content";
sourceTree = "<group>";
};
ECA738762BE5EE4E00A4542E /* App */ = {
isa = PBXGroup;
children = (
EC7F6BEB2BE5E6E300A34A7B /* MemolaApp.swift */,
);
path = App;
sourceTree = "<group>";
};
ECA738772BE5EEE800A4542E /* Features */ = {
isa = PBXGroup;
children = (
ECA7387B2BE5EF3500A4542E /* Memo */,
ECA738782BE5EEF700A4542E /* Memos */,
);
path = Features;
sourceTree = "<group>";
};
ECA738782BE5EEF700A4542E /* Memos */ = {
isa = PBXGroup;
children = (
ECA738792BE5EF0400A4542E /* MemosView.swift */,
);
path = Memos;
sourceTree = "<group>";
};
ECA7387B2BE5EF3500A4542E /* Memo */ = {
isa = PBXGroup;
children = (
ECA7387C2BE5EF4B00A4542E /* MemoView.swift */,
);
path = Memo;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
@@ -137,7 +172,8 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC7F6BEE2BE5E6E300A34A7B /* ContentView.swift in Sources */,
ECA7387A2BE5EF0400A4542E /* MemosView.swift in Sources */,
ECA7387D2BE5EF4B00A4542E /* MemoView.swift in Sources */,
EC7F6BEC2BE5E6E300A34A7B /* MemolaApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -287,6 +323,9 @@
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.Memola;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
@@ -316,6 +355,9 @@
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.example.Memola;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SUPPORTS_MACCATALYST = NO;
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";

View File

@@ -11,7 +11,7 @@ import SwiftUI
struct MemolaApp: App {
var body: some Scene {
WindowGroup {
ContentView()
MemosView()
}
}
}

View File

@@ -1,24 +0,0 @@
//
// ContentView.swift
// Memola
//
// Created by Dscyre Scotti on 5/4/24.
//
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundStyle(.tint)
Text("Hello, world!")
}
.padding()
}
}
#Preview {
ContentView()
}

View File

@@ -0,0 +1,22 @@
//
// MemoView.swift
// Memola
//
// Created by Dscyre Scotti on 5/4/24.
//
import SwiftUI
struct MemoView: View {
@Environment(\.dismiss) var dismiss
var body: some View {
VStack {
Text("Memo View")
Button {
dismiss()
} label: {
Text("Close Memo")
}
}
}
}

View File

@@ -0,0 +1,25 @@
//
// MemosView.swift
// Memola
//
// Created by Dscyre Scotti on 5/4/24.
//
import SwiftUI
struct MemosView: View {
@State var isPresented: Bool = false
var body: some View {
VStack {
Text("Memos View")
Button {
isPresented.toggle()
} label: {
Text("Open Memo")
}
.fullScreenCover(isPresented: $isPresented) {
MemoView()
}
}
}
}