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.

chore: reuse profile1 across preview galleries

+12 -13
+12 -13
Grain/Utilities/PreviewData.swift
··· 11 11 handle: "yuki.grain.social", 12 12 displayName: "Yuki Tanaka", 13 13 description: "Analog photographer based in Tokyo 馃嚡馃嚨\nLeica M6 路 Mamiya RB67 路 Kodak Portra\n#35mm #film #analog #streetphoto", 14 - avatar: nil, 14 + avatar: bundleImageURL("Penguin_in_Antarctica_jumping_out_of_the_water"), 15 15 cameras: ["Leica M6", "Mamiya RB67"], 16 16 followersCount: 2847, 17 17 followsCount: 412, 18 18 galleryCount: 63, 19 19 viewer: ActorViewerState(following: nil, followedBy: "at://preview/follow/1") 20 + ) 21 + 22 + static let profile1 = GrainProfile( 23 + cid: "c1", 24 + did: "did:plc:prevuser1", 25 + handle: "yuki.grain.social", 26 + displayName: "Yuki Tanaka", 27 + avatar: bundleImageURL("Penguin_in_Antarctica_jumping_out_of_the_water") 20 28 ) 21 29 22 30 static let profile2 = GrainProfile( ··· 126 134 title: "Golden Hour, Kyoto", 127 135 description: "Shot on Leica M6 with Kodak Portra 400 during autumn in Kyoto. #analog #japan #35mm #film", 128 136 cameras: ["Leica M6"], 129 - creator: GrainProfile( 130 - cid: "cid", did: "did:plc:prevuser1", 131 - handle: "yuki.grain.social", displayName: "Yuki Tanaka" 132 - ), 137 + creator: profile1, 133 138 items: photos, 134 139 favCount: 184, 135 140 commentCount: 12, ··· 142 147 title: "Lower East Side", 143 148 description: "Sunday morning light on Orchard St. #nyc #street #leica", 144 149 cameras: ["Leica Q3"], 145 - creator: GrainProfile( 146 - cid: "cid", did: "did:plc:prevuser2", 147 - handle: "marcus.grain.social", displayName: "Marcus Webb" 148 - ), 150 + creator: profile2, 149 151 items: Array(photos.prefix(2)), 150 152 favCount: 97, 151 153 commentCount: 5, ··· 158 160 title: "Oaxaca Market", 159 161 description: "Colors, light, and life. Shot on Fuji Velvia 50. #mexico #analog #color", 160 162 cameras: ["Nikon FM2"], 161 - creator: GrainProfile( 162 - cid: "cid", did: "did:plc:prevuser3", 163 - handle: "sofia.grain.social", displayName: "Sofia Reyes" 164 - ), 163 + creator: profile3, 165 164 items: Array(photos.prefix(3)), 166 165 favCount: 231, 167 166 commentCount: 18,