Skip to content

Commit

Permalink
Merge pull request #6 from TEAM-CLIP/v.0.0.1
Browse files Browse the repository at this point in the history
feat: v0.0.1 개발환경 구축 (#1, #3, #4)
  • Loading branch information
NeoSelf1 authored Nov 6, 2024
2 parents 6452ade + 3e33581 commit 905d729
Show file tree
Hide file tree
Showing 170 changed files with 5,338 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.DS_Store
._.DS_Store
**/.DS_Store
**/._.DS_Store

tyte/.DS_Store
tyte/Components/.DS_Store
xcuserdata/

## App packaging
*.ipa
*.dSYM.zip
*.dSYM


# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#

Pods/
13 changes: 13 additions & 0 deletions APIConstants.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// APIConstants.swift
// tyte
//
// Created by Neoself on 10/21/24.
//

import Foundation

struct APIConstants {
static let isDevelopment = true
static let baseUrl = isDevelopment ? "http://138.2.124.93:8080/api/v1" : "아직 없음"
}
11 changes: 11 additions & 0 deletions AppState.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Foundation

class AppState: ObservableObject {
static let shared = AppState() // 전역적으로 접근 가능한 인스턴스 생성. 이는 싱글톤으로 구현되어있는 APIManager에서 appState를 직접 접근하게 하기 위해서임.
@Published var isLoggedIn: Bool = false // Published 래퍼를 통해 상태 변화를 SwiftUI 뷰에 자동반영
@Published var isGuestMode: Bool = false
@Published var currentToast: ToastType?

private init() {}
}

Loading

0 comments on commit 905d729

Please sign in to comment.