chore: fix building the app (#13606)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

- New Features
  - Built-in Then-style DSL for fluent configuration.
- Centralized theming via a new resources library exposing standardized
colors and icons for SwiftUI and UIKit.

- Refactor
  - Migrated color and icon accessors to the new resources provider.
  - Removed redundant imports and streamlined UI configuration.

- Dependencies
  - Updated MarkdownView to 3.4.2.
- Removed the Then third-party dependency; updated package sources;
added resources package and assets.

- Documentation
  - Added iOS Swift code style and architecture guidelines.

- Chores
  - Updated Xcode project format and repository ignore rules.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Lakr
2025-09-19 14:05:05 +08:00
committed by GitHub
parent ee77c548ca
commit 1f228382c2
83 changed files with 484 additions and 78 deletions

View File

@@ -0,0 +1,23 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "AffineResources",
products: [
.library(
name: "AffineResources",
targets: ["AffineResources"]
),
],
targets: [
.target(
name: "AffineResources",
resources: [
.process("Resources/Icons.xcassets"),
.process("Resources/Colors.xcassets"),
]
),
]
)