this repo has no description
2
fork

Configure Feed

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

small cleanup

+25 -13
+1 -1
README.md
··· 79 79 // Get your timeline 80 80 let timeline = try await service.getTimeline(limit: 50) 81 81 for item in timeline.feed { 82 - print("\(item.post.author.handle): \(item.post.record.text)") 82 + print("\(item.post.author.handle): \(item.post.record.text ?? "")") 83 83 } 84 84 85 85 // Search for users
+2 -2
Sources/bskyKit/Documentation.docc/GettingStarted.md
··· 110 110 111 111 for item in timeline.feed { 112 112 let post = item.post 113 - print("@\(post.author.handle): \(post.record.text)") 114 - print(" Likes: \(post.likeCount) | Reposts: \(post.repostCount)") 113 + print("@\(post.author.handle): \(post.record.text ?? "")") 114 + print(" Likes: \(post.likeCount ?? 0) | Reposts: \(post.repostCount ?? 0)") 115 115 print("") 116 116 } 117 117
+13 -2
Sources/bskyKit/Documentation.docc/SocialGraph.md
··· 240 240 public let handle: String 241 241 public let displayName: String? 242 242 public let avatar: String? 243 + public let description: String? 244 + public let indexedAt: Date? 245 + public let viewer: Viewer? 246 + public let labels: [AuthorLabels]? 243 247 } 244 248 245 249 public struct FollowProfile: Codable, Sendable, Identifiable { ··· 278 282 public let handle: String 279 283 public let displayName: String? 280 284 public let avatar: String? 285 + public let description: String? 286 + public let indexedAt: Date? 281 287 public let viewer: Viewer? 288 + public let labels: [AuthorLabels]? 282 289 283 290 public var id: String { did } 284 291 } ··· 297 304 public let handle: String 298 305 public let displayName: String? 299 306 public let avatar: String? 307 + public let description: String? 308 + public let indexedAt: Date? 300 309 public let viewer: Viewer? 310 + public let labels: [AuthorLabels]? 301 311 302 312 public var id: String { did } 303 313 } ··· 308 318 ```swift 309 319 public struct Viewer: Codable, Sendable { 310 320 public let muted: Bool? 311 - public let mutedByList: String? 312 321 public let blockedBy: Bool? 313 - public let blocking: String? 314 322 public let following: String? 315 323 public let followedBy: String? 324 + public let blocking: String? 325 + public let mutedByList: String? 326 + public let blockingByList: String? 316 327 } 317 328 ``` 318 329
+6 -5
Sources/bskyKit/Documentation.docc/TimelineAndFeeds.md
··· 24 24 if let displayName = author.displayName { 25 25 print(" \(displayName)") 26 26 } 27 - print(" \(post.record.text)") 28 - print(" Likes: \(post.likeCount) | Reposts: \(post.repostCount) | Replies: \(post.replyCount)") 27 + print(" \(post.record.text ?? "")") 28 + print(" Likes: \(post.likeCount ?? 0) | Reposts: \(post.repostCount ?? 0) | Replies: \(post.replyCount ?? 0)") 29 29 print("") 30 30 } 31 31 ``` ··· 62 62 ) 63 63 64 64 for item in authorFeed.feed { 65 - print(item.post.record.text) 65 + print(item.post.record.text ?? "") 66 66 } 67 67 68 68 // Paginate author feed ··· 101 101 let posts = try await service.getPosts(uris: uris) 102 102 103 103 for post in posts.posts { 104 - print(post.record.text) 104 + print(post.record.text ?? "") 105 105 } 106 106 ``` 107 107 ··· 151 151 let generators = try await service.getFeedGenerators(for: feedUris) 152 152 153 153 for feed in generators.feeds { 154 - print("\(feed.displayName ?? feed.uri)") 154 + print(feed.displayName) 155 155 print(" Likes: \(feed.likeCount ?? 0)") 156 156 print(" Creator: @\(feed.creator.handle)") 157 157 } ··· 221 221 public let viewer: FeedViewer? 222 222 public let labels: [AuthorLabels]? 223 223 public let embed: Embed? 224 + public let threadgate: ThreadgateView? 224 225 } 225 226 ``` 226 227
+2 -2
Sources/bskyKit/Documentation.docc/WorkingWithProfiles.md
··· 135 135 let preferences = try await service.getPreferences() 136 136 137 137 // Preferences contain saved feeds, pinned items, etc. 138 - for savedFeed in preferences.saved { 139 - print("Saved: \(savedFeed)") 138 + for savedFeed in preferences.savedFeeds { 139 + print("Saved: \(savedFeed.value)") 140 140 } 141 141 142 142 // Update preferences payload when needed
+1 -1
Sources/bskyKit/Documentation.docc/bskyKit.md
··· 37 37 // Get timeline 38 38 let timeline = try await service.getTimeline(limit: 20) 39 39 for item in timeline.feed { 40 - print(item.post.record.text) 40 + print(item.post.record.text ?? "") 41 41 } 42 42 ``` 43 43