From 1123134637676d3c04b6a0c09e9b6602514eca44 Mon Sep 17 00:00:00 2001 From: Eilgnaw Date: Thu, 5 Jan 2023 17:32:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Package.swift | 8 +------- README.md | 14 ++++++++++++-- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/Package.swift b/Package.swift index 3dd95a8..cc743d7 100644 --- a/Package.swift +++ b/Package.swift @@ -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"]), ] ) diff --git a/README.md b/README.md index 0191bc2..8263cf7 100644 --- a/README.md +++ b/README.md @@ -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)