chore(project): 添加 .gitignore 与 .editorconfig,忽略用户本地产物
- 补充 macOS / Xcode / Swift 常用忽略规则 - 移除已跟踪的 xcuserdata 用户本地产物 - 统一编辑器基础配置(Swift 4 空格缩进)
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
root = true
|
||||
|
||||
[*]
|
||||
charset = utf-8
|
||||
end_of_line = lf
|
||||
insert_final_newline = true
|
||||
trim_trailing_whitespace = true
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.swift]
|
||||
indent_size = 4
|
||||
|
||||
[*.md]
|
||||
trim_trailing_whitespace = false
|
||||
|
||||
[{Makefile,*.mk}]
|
||||
indent_style = tab
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
# ---- macOS 系统文件 ----
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# ---- Xcode 用户本地产物 ----
|
||||
xcuserdata/
|
||||
*.xcuserstate
|
||||
*.xcscmblueprint
|
||||
*.moved-aside
|
||||
DerivedData/
|
||||
build/
|
||||
*.hmap
|
||||
|
||||
# ---- 构建产物 ----
|
||||
*.ipa
|
||||
*.dSYM
|
||||
*.dSYM.zip
|
||||
*.app
|
||||
*.framework
|
||||
*.xcframework
|
||||
|
||||
# ---- Swift Package Manager ----
|
||||
.build/
|
||||
.swiftpm/
|
||||
|
||||
# ---- CocoaPods(若未来引入) ----
|
||||
Pods/
|
||||
|
||||
# ---- 工具与编辑器 ----
|
||||
.vscode/
|
||||
.idea/
|
||||
*.swp
|
||||
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>SchemeUserState</key>
|
||||
<dict>
|
||||
<key>kymo.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</plist>
|
||||
@@ -1,24 +0,0 @@
|
||||
//
|
||||
// ContentView.swift
|
||||
// kymo
|
||||
//
|
||||
// Created by Airnan on 2026/10/29.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
struct ContentView: View {
|
||||
var body: some View {
|
||||
VStack {
|
||||
Image(systemName: "globe")
|
||||
.imageScale(.large)
|
||||
.foregroundStyle(.tint)
|
||||
Text("Hello, world!")
|
||||
}
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
||||
#Preview {
|
||||
ContentView()
|
||||
}
|
||||
Reference in New Issue
Block a user