Skip to content

Commit e22e18d

Browse files
committed
Added animated clock
1 parent eb3a5fa commit e22e18d

25 files changed

+1021
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>AvailableLibraries</key>
6+
<array>
7+
<dict>
8+
<key>LibraryIdentifier</key>
9+
<string>ios-arm64_x86_64-simulator</string>
10+
<key>LibraryPath</key>
11+
<string>ClockRotationEffect.framework</string>
12+
<key>SupportedArchitectures</key>
13+
<array>
14+
<string>arm64</string>
15+
<string>x86_64</string>
16+
</array>
17+
<key>SupportedPlatform</key>
18+
<string>ios</string>
19+
<key>SupportedPlatformVariant</key>
20+
<string>simulator</string>
21+
</dict>
22+
<dict>
23+
<key>LibraryIdentifier</key>
24+
<string>ios-arm64</string>
25+
<key>LibraryPath</key>
26+
<string>ClockRotationEffect.framework</string>
27+
<key>SupportedArchitectures</key>
28+
<array>
29+
<string>arm64</string>
30+
</array>
31+
<key>SupportedPlatform</key>
32+
<string>ios</string>
33+
</dict>
34+
</array>
35+
<key>CFBundlePackageType</key>
36+
<string>XFWK</string>
37+
<key>XCFrameworkFormatVersion</key>
38+
<string>1.0</string>
39+
</dict>
40+
</plist>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
// Generated by Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
2+
#ifndef CLOCKROTATIONEFFECT_SWIFT_H
3+
#define CLOCKROTATIONEFFECT_SWIFT_H
4+
#pragma clang diagnostic push
5+
#pragma clang diagnostic ignored "-Wgcc-compat"
6+
7+
#if !defined(__has_include)
8+
# define __has_include(x) 0
9+
#endif
10+
#if !defined(__has_attribute)
11+
# define __has_attribute(x) 0
12+
#endif
13+
#if !defined(__has_feature)
14+
# define __has_feature(x) 0
15+
#endif
16+
#if !defined(__has_warning)
17+
# define __has_warning(x) 0
18+
#endif
19+
20+
#if __has_include(<swift/objc-prologue.h>)
21+
# include <swift/objc-prologue.h>
22+
#endif
23+
24+
#pragma clang diagnostic ignored "-Wauto-import"
25+
#include <Foundation/Foundation.h>
26+
#include <stdint.h>
27+
#include <stddef.h>
28+
#include <stdbool.h>
29+
30+
#if !defined(SWIFT_TYPEDEFS)
31+
# define SWIFT_TYPEDEFS 1
32+
# if __has_include(<uchar.h>)
33+
# include <uchar.h>
34+
# elif !defined(__cplusplus)
35+
typedef uint_least16_t char16_t;
36+
typedef uint_least32_t char32_t;
37+
# endif
38+
typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
39+
typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
40+
typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
41+
typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
42+
typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
43+
typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
44+
typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
45+
typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
46+
typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
47+
typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
48+
typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
49+
typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
50+
#endif
51+
52+
#if !defined(SWIFT_PASTE)
53+
# define SWIFT_PASTE_HELPER(x, y) x##y
54+
# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
55+
#endif
56+
#if !defined(SWIFT_METATYPE)
57+
# define SWIFT_METATYPE(X) Class
58+
#endif
59+
#if !defined(SWIFT_CLASS_PROPERTY)
60+
# if __has_feature(objc_class_property)
61+
# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
62+
# else
63+
# define SWIFT_CLASS_PROPERTY(...)
64+
# endif
65+
#endif
66+
67+
#if __has_attribute(objc_runtime_name)
68+
# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
69+
#else
70+
# define SWIFT_RUNTIME_NAME(X)
71+
#endif
72+
#if __has_attribute(swift_name)
73+
# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
74+
#else
75+
# define SWIFT_COMPILE_NAME(X)
76+
#endif
77+
#if __has_attribute(objc_method_family)
78+
# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
79+
#else
80+
# define SWIFT_METHOD_FAMILY(X)
81+
#endif
82+
#if __has_attribute(noescape)
83+
# define SWIFT_NOESCAPE __attribute__((noescape))
84+
#else
85+
# define SWIFT_NOESCAPE
86+
#endif
87+
#if __has_attribute(ns_consumed)
88+
# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
89+
#else
90+
# define SWIFT_RELEASES_ARGUMENT
91+
#endif
92+
#if __has_attribute(warn_unused_result)
93+
# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
94+
#else
95+
# define SWIFT_WARN_UNUSED_RESULT
96+
#endif
97+
#if __has_attribute(noreturn)
98+
# define SWIFT_NORETURN __attribute__((noreturn))
99+
#else
100+
# define SWIFT_NORETURN
101+
#endif
102+
#if !defined(SWIFT_CLASS_EXTRA)
103+
# define SWIFT_CLASS_EXTRA
104+
#endif
105+
#if !defined(SWIFT_PROTOCOL_EXTRA)
106+
# define SWIFT_PROTOCOL_EXTRA
107+
#endif
108+
#if !defined(SWIFT_ENUM_EXTRA)
109+
# define SWIFT_ENUM_EXTRA
110+
#endif
111+
#if !defined(SWIFT_CLASS)
112+
# if __has_attribute(objc_subclassing_restricted)
113+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
114+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
115+
# else
116+
# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
117+
# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
118+
# endif
119+
#endif
120+
#if !defined(SWIFT_RESILIENT_CLASS)
121+
# if __has_attribute(objc_class_stub)
122+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
123+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
124+
# else
125+
# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
126+
# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
127+
# endif
128+
#endif
129+
130+
#if !defined(SWIFT_PROTOCOL)
131+
# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
132+
# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
133+
#endif
134+
135+
#if !defined(SWIFT_EXTENSION)
136+
# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
137+
#endif
138+
139+
#if !defined(OBJC_DESIGNATED_INITIALIZER)
140+
# if __has_attribute(objc_designated_initializer)
141+
# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
142+
# else
143+
# define OBJC_DESIGNATED_INITIALIZER
144+
# endif
145+
#endif
146+
#if !defined(SWIFT_ENUM_ATTR)
147+
# if defined(__has_attribute) && __has_attribute(enum_extensibility)
148+
# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
149+
# else
150+
# define SWIFT_ENUM_ATTR(_extensibility)
151+
# endif
152+
#endif
153+
#if !defined(SWIFT_ENUM)
154+
# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
155+
# if __has_feature(generalized_swift_name)
156+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
157+
# else
158+
# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
159+
# endif
160+
#endif
161+
#if !defined(SWIFT_UNAVAILABLE)
162+
# define SWIFT_UNAVAILABLE __attribute__((unavailable))
163+
#endif
164+
#if !defined(SWIFT_UNAVAILABLE_MSG)
165+
# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
166+
#endif
167+
#if !defined(SWIFT_AVAILABILITY)
168+
# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
169+
#endif
170+
#if !defined(SWIFT_WEAK_IMPORT)
171+
# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
172+
#endif
173+
#if !defined(SWIFT_DEPRECATED)
174+
# define SWIFT_DEPRECATED __attribute__((deprecated))
175+
#endif
176+
#if !defined(SWIFT_DEPRECATED_MSG)
177+
# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
178+
#endif
179+
#if __has_feature(attribute_diagnose_if_objc)
180+
# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
181+
#else
182+
# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
183+
#endif
184+
#if !defined(IBSegueAction)
185+
# define IBSegueAction
186+
#endif
187+
#if !defined(SWIFT_EXTERN)
188+
# if defined(__cplusplus)
189+
# define SWIFT_EXTERN extern "C"
190+
# else
191+
# define SWIFT_EXTERN extern
192+
# endif
193+
#endif
194+
#if __has_feature(modules)
195+
#if __has_warning("-Watimport-in-framework-header")
196+
#pragma clang diagnostic ignored "-Watimport-in-framework-header"
197+
#endif
198+
#endif
199+
200+
#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
201+
#pragma clang diagnostic ignored "-Wduplicate-method-arg"
202+
#if __has_warning("-Wpragma-clang-attribute")
203+
# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
204+
#endif
205+
#pragma clang diagnostic ignored "-Wunknown-pragmas"
206+
#pragma clang diagnostic ignored "-Wnullability"
207+
208+
#if __has_attribute(external_source_symbol)
209+
# pragma push_macro("any")
210+
# undef any
211+
# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="ClockRotationEffect",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
212+
# pragma pop_macro("any")
213+
#endif
214+
215+
#if __has_attribute(external_source_symbol)
216+
# pragma clang attribute pop
217+
#endif
218+
#pragma clang diagnostic pop
219+
#endif
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#import <Foundation/Foundation.h>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// swift-interface-format-version: 1.0
2+
// swift-compiler-version: Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
3+
// swift-module-flags: -target arm64-apple-ios15.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name ClockRotationEffect
4+
@_exported import ClockRotationEffect
5+
import Foundation
6+
import Swift
7+
import SwiftUI
8+
import WidgetKit
9+
import _Concurrency
10+
public enum ClockRotationPeriod {
11+
case custom(Foundation.TimeInterval)
12+
case secondHand, hourHand, miniuteHand
13+
}
14+
public struct ClockRotationModifier : SwiftUI.ViewModifier {
15+
public init(period: ClockRotationEffect.ClockRotationPeriod, timezone: Foundation.TimeZone, anchor: SwiftUI.UnitPoint)
16+
@_Concurrency.MainActor(unsafe) public func body(content: ClockRotationEffect.ClockRotationModifier.Content) -> some SwiftUI.View
17+
18+
public typealias Body = @_opaqueReturnTypeOf("$s19ClockRotationEffect0aB8ModifierV4body7contentQr7SwiftUI05_ViewD8_ContentVyACG_tF", 0) __
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
framework module ClockRotationEffect {
2+
umbrella header "ClockRotationEffect.h"
3+
4+
export *
5+
module * { export * }
6+
}
7+
8+
module ClockRotationEffect.Swift {
9+
header "ClockRotationEffect-Swift.h"
10+
requires objc
11+
}

0 commit comments

Comments
 (0)