This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
@State var start = Date() | |
var body: some View { | |
TimelineView(.animation) { context in | |
let time = context.date.timeIntervalSince(start) / 120 | |
let rotation = 0.8 + 0.2 * abs((cos(.pi * time) + 1.0) / 2.0) | |
Canvas { context, size in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class S3UploadCredentials: NSObject { | |
var bucketUrl: String | |
var key: String | |
var acl: String | |
var credential: String | |
var date: String | |
var algorithm: String | |
var policy: String | |
var signature: String |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)enumerateObjectsUsingBlockzzz:(void(^)(id obj, NSUInteger idx, BOOL *stop))block; | |
-(void)enumerateObjectsUsingBlockzzz:(void (^)(id, NSUInteger, BOOL*))block { | |
BOOL stop = NO; | |
for (int i = 0; i < [self count]; i++) { | |
block(self[i],i,&stop); | |
if (stop) { | |
break; |