Skip to content

Commit

Permalink
添加说明
Browse files Browse the repository at this point in the history
  • Loading branch information
Eilgnaw committed Jan 5, 2023
1 parent 0d42c68 commit 1123134
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
8 changes: 1 addition & 7 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,8 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages this package depends on.
.binaryTarget(
name: "ClockRotationEffect",
url: "https://raw.githubusercontent.com/Eilgnaw/automatic-app-landing-page/master/assets/spm/ClockRotationEffect.xcframework.zip",
url: "https://image.umiibo.app/assets/spm/ClockRotationEffect.xcframework.zip",
checksum: "8429ed6b77e7d408d0904e2f017e31e06d4864dceec95f44f8e83f08301af6cd"
),
// .target(
// name: "ClockRotationEffect",
// dependencies: []),
// .testTarget(
// name: "ClockRotationEffectTests",
// dependencies: ["ClockRotationEffect"]),
]
)
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# ClockRotationEffect
# 小组件旋转
### 使用方法
- Xcode14 `File > Add Package` 添加本仓库地址

A description of this package.
``` Swift
import ClockRotationEffect

Text("ClockRotationEffect")
.modifier(ClockRotationModifier(period: ClockRotationPeriod.secondHand, timezone: TimeZone.current, anchor: .top))
```


- [参考项目](https://github.com/everettjf/Xcode13ClockHandRotationEffectModifier)

0 comments on commit 1123134

Please sign in to comment.