iOS client for Grain grain.social
ios photography atproto
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update PreviewData.swift

+47
+47
Grain/Utilities/PreviewData.swift
··· 500 500 galleryThumb: bundleImageURL("Portland_Japanese_Garden_maple"), 501 501 commentText: "Tagged you in a comment: @yuki.grain.social beautiful work!" 502 502 ), 503 + // — Single gallery mention 504 + GrainNotification( 505 + uri: "at://did:plc:prevuser4/social.grain.notification/n7", 506 + reason: "gallery-mention", 507 + createdAt: ago(3 * day + 2 * hour), 508 + author: profile4, 509 + galleryUri: gallery3.uri, 510 + galleryTitle: gallery3.title, 511 + galleryThumb: bundleImageURL("Mt_Herschel,_Antarctica,_Jan_2006") 512 + ), 513 + // — Single story comment 514 + GrainNotification( 515 + uri: "at://did:plc:prevuser6/social.grain.notification/n8", 516 + reason: "story-comment", 517 + createdAt: ago(3 * day + 5 * hour), 518 + author: profile6, 519 + storyUri: stories[0].uri, 520 + storyThumb: bundleImageURL("Portland_Japanese_Garden_maple"), 521 + commentText: "Love the autumn colors here" 522 + ), 523 + // — Single reply 524 + GrainNotification( 525 + uri: "at://did:plc:prevuser7/social.grain.notification/n9", 526 + reason: "reply", 527 + createdAt: ago(4 * day), 528 + author: profile7, 529 + galleryUri: gallery1.uri, 530 + galleryTitle: gallery1.title, 531 + galleryThumb: bundleImageURL("Portland_Japanese_Garden_maple"), 532 + commentText: "Totally agree, Portra is unmatched for skin tones" 533 + ), 534 + // — Single story favorite (different story, won't group with the pair above) 535 + GrainNotification( 536 + uri: "at://did:plc:prevuser8/social.grain.notification/n10", 537 + reason: "story-favorite", 538 + createdAt: ago(4 * day + 3 * hour), 539 + author: profile8, 540 + storyUri: stories[1].uri, 541 + storyThumb: bundleImageURL("Mount_Hood_reflected_in_Mirror_Lake,_Oregon") 542 + ), 543 + // — Single follow (>48h from the group, won't merge) 544 + GrainNotification( 545 + uri: "at://did:plc:prevuser5/social.grain.notification/n11", 546 + reason: "follow", 547 + createdAt: ago(5 * day), 548 + author: profile5 549 + ), 503 550 ] 504 551 505 552 // MARK: - Image generation