Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions Examples/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@
"-Xfrontend",
"-enable-actor-data-race-checks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atomic-architecture.examples.iOS";
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atom-properties.examples.iOS";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -300,7 +300,7 @@
"-Xfrontend",
"-enable-actor-data-race-checks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atomic-architecture.examples.CrossPlatform-macOS";
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atom-properties.examples.CrossPlatform-macOS";
SDKROOT = macosx;
};
name = Debug;
Expand All @@ -322,7 +322,7 @@
"-Xfrontend",
"-enable-actor-data-race-checks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atomic-architecture.examples.CrossPlatform-iOS";
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atom-properties.examples.CrossPlatform-iOS";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand All @@ -345,7 +345,7 @@
"-Xfrontend",
"-enable-actor-data-race-checks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atomic-architecture.examples.iOS";
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atom-properties.examples.iOS";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down Expand Up @@ -423,7 +423,7 @@
"-Xfrontend",
"-enable-actor-data-race-checks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atomic-architecture.examples.CrossPlatform-macOS";
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atom-properties.examples.CrossPlatform-macOS";
SDKROOT = macosx;
};
name = Release;
Expand All @@ -445,7 +445,7 @@
"-Xfrontend",
"-enable-actor-data-race-checks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atomic-architecture.examples.CrossPlatform-tvOS";
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atom-properties.examples.CrossPlatform-tvOS";
SDKROOT = appletvos;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 14.0;
Expand All @@ -469,7 +469,7 @@
"-Xfrontend",
"-enable-actor-data-race-checks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atomic-architecture.examples.CrossPlatform-tvOS";
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atom-properties.examples.CrossPlatform-tvOS";
SDKROOT = appletvos;
TARGETED_DEVICE_FAMILY = 3;
TVOS_DEPLOYMENT_TARGET = 14.0;
Expand Down Expand Up @@ -554,7 +554,7 @@
"-Xfrontend",
"-enable-actor-data-race-checks",
);
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atomic-architecture.examples.CrossPlatform-iOS";
PRODUCT_BUNDLE_IDENTIFIER = "com.ryo.swiftui-atom-properties.examples.CrossPlatform-iOS";
SDKROOT = iphoneos;
TARGETED_DEVICE_FAMILY = "1,2";
};
Expand Down
2 changes: 1 addition & 1 deletion Examples/Packages/CrossPlatform/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import PackageDescription

let atoms = Target.Dependency.product(name: "Atoms", package: "swiftui-atomic-architecture")
let atoms = Target.Dependency.product(name: "Atoms", package: "swiftui-atom-properties")

let package = Package(
name: "CrossPlatformExamples",
Expand Down
2 changes: 1 addition & 1 deletion Examples/Packages/iOS/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import PackageDescription

let atoms = Target.Dependency.product(name: "Atoms", package: "swiftui-atomic-architecture")
let atoms = Target.Dependency.product(name: "Atoms", package: "swiftui-atom-properties")

let package = Package(
name: "iOSExamples",
Expand Down
2 changes: 1 addition & 1 deletion Examples/project.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: App
options:
bundleIdPrefix: com.ryo.swiftui-atomic-architecture.examples
bundleIdPrefix: com.ryo.swiftui-atom-properties.examples
createIntermediateGroups: true
settingGroups:
app:
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ docs:
--product Atoms \
--disable-indexing \
--transform-for-static-hosting \
--hosting-base-path swiftui-atomic-architecture \
--hosting-base-path swiftui-atom-properties \
--output-path docs

.PHONY: docs-preview
Expand All @@ -42,7 +42,7 @@ test: test-library test-examples
.PHONY: test-library
test-library:
for platform in "$(TEST_PLATFORM_IOS)" "$(TEST_PLATFORM_MACOS)" "$(TEST_PLATFORM_TVOS)" "$(TEST_PLATFORM_WATCHOS)"; do \
xcodebuild test -scheme swiftui-atomic-architecture -destination platform="$$platform"; \
xcodebuild test -scheme swiftui-atom-properties -destination platform="$$platform"; \
done

.PHONY: test-examples
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import PackageDescription

let package = Package(
name: "swiftui-atomic-architecture",
name: "swiftui-atom-properties",
platforms: [
.iOS(.v14),
.macOS(.v11),
Expand Down
161 changes: 80 additions & 81 deletions README.md

Large diffs are not rendered by default.

12 changes: 6 additions & 6 deletions Sources/Atoms/Atom/TaskAtom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
/// ## Example
///
/// ```swift
/// struct AsyncTitleAtom: TaskAtom, Hashable {
/// struct AsyncTextAtom: TaskAtom, Hashable {
/// func value(context: Context) async -> String {
/// try? await Task.sleep(nanoseconds: 1_000_000_000)
/// return "The Atomic Architecture"
/// return "Swift"
/// }
/// }
///
/// struct DelayedTitleView: View {
/// @Watch(AsyncTitleAtom())
/// var title
/// @Watch(AsyncTextAtom())
/// var text
///
/// var body: some View {
/// Suspense(title) { title in
/// Text(title)
/// Suspense(text) { text in
/// Text(text)
/// } suspending: {
/// Text("Loading...")
/// }
Expand Down
12 changes: 6 additions & 6 deletions Sources/Atoms/Atom/ThrowingTaskAtom.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,20 @@
/// ## Example
///
/// ```swift
/// struct AsyncTitleAtom: ThrowingTaskAtom, Hashable {
/// struct AsyncTextAtom: ThrowingTaskAtom, Hashable {
/// func value(context: Context) async throws -> String {
/// try await Task.sleep(nanoseconds: 1_000_000_000)
/// return "The Atomic Architecture"
/// return "Swift"
/// }
/// }
///
/// struct DelayedTitleView: View {
/// @Watch(AsyncTitleAtom())
/// var title
/// @Watch(AsyncTextAtom())
/// var text
///
/// var body: some View {
/// Suspense(title) { title in
/// Text(title)
/// Suspense(text) { text in
/// Text(text)
/// } suspending: {
/// Text("Loading")
/// } catch: {
Expand Down
6 changes: 3 additions & 3 deletions Sources/Atoms/Atoms.docc/Atoms.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# ``Atoms``

A declarative state management and dependency injection library for SwiftUI x Concurrency.
A Reactive Data-Binding and Dependency Injection Library for SwiftUI x Concurrency.

## Overview

The Atomic Architecture offers practical capabilities to manage the complexity of modern apps. It effectively integrates the solution for both state management and dependency injection while allowing us to rapidly building an application.
SwiftUI Atom Properties offers practical capabilities to manage the complexity of modern apps. It effectively integrates the solution for both data-binding and dependency injection while allowing us to rapidly building an application.

## Source Code

<https://github.com/ra1028/swiftui-atomic-architecture>
<https://github.com/ra1028/swiftui-atom-properties>

## Topics

Expand Down
2 changes: 1 addition & 1 deletion Tools/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import PackageDescription
let package = Package(
name: "Tools",
dependencies: [
.package(name: "swiftui-atomic-architecture", path: ".."),
.package(name: "swiftui-atom-properties", path: ".."),
.package(url: "https://github.com/apple/swift-docc-plugin", exact: "1.0.0"),
.package(url: "https://github.com/apple/swift-format.git", exact: "0.50600.0"),
.package(url: "https://github.com/yonaskolb/XcodeGen.git", exact: "2.27.0"),
Expand Down
Binary file modified assets/assets.key
Binary file not shown.
Binary file modified assets/diagram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.