{"id":18739716,"url":"https://github.com/roblabs/messages-extensions","last_synced_at":"2025-10-14T23:05:50.450Z","repository":{"id":136165310,"uuid":"452078497","full_name":"roblabs/Messages-Extensions","owner":"roblabs","description":"A Swift Package that offers convenient code for logging to aid in understanding how the MSMessagesAppViewController event handlers work.","archived":false,"fork":false,"pushed_at":"2022-02-21T19:58:55.000Z","size":11,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-05T02:54:54.390Z","etag":null,"topics":["imessage","imessage-apps","imessage-extensions"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roblabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-25T23:39:41.000Z","updated_at":"2023-09-22T07:43:51.000Z","dependencies_parsed_at":null,"dependency_job_id":"169324c6-3c1e-4a77-9f67-eee4571a8157","html_url":"https://github.com/roblabs/Messages-Extensions","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/roblabs/Messages-Extensions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblabs%2FMessages-Extensions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblabs%2FMessages-Extensions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblabs%2FMessages-Extensions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblabs%2FMessages-Extensions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roblabs","download_url":"https://codeload.github.com/roblabs/Messages-Extensions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblabs%2FMessages-Extensions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279021880,"owners_count":26087070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["imessage","imessage-apps","imessage-extensions"],"created_at":"2024-11-07T15:37:07.703Z","updated_at":"2025-10-14T23:05:50.356Z","avatar_url":"https://github.com/roblabs.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Messages_Extensions\n\nA Swift Package that offers convenient code for logging to aid in understanding how the [`MSMessagesAppViewController`](https://developer.apple.com/documentation/messages/msmessagesappviewcontroller) event handlers work.\n\n## Usage\n\nTo install using the [Swift Package Manager](https://swift.org/package-manager/), add the following package to the `dependencies` in your Package.swift file:\n\nAdd to your [`Package.Dependency`](https://developer.apple.com/documentation/swift_packages/package/dependency)\n\n```swift\ndependencies: [\n  .package(url: \"https://github.com/roblabs/Messages-Extensions.git\", from: \"1.0.0\")\n]\n```\n\nAdd to your [`Target.Dependency`](https://developer.apple.com/documentation/swift_packages/target/dependency)\n\n```swift\ntargets: [\n  .target(\n    name: \"yourProduct\",\n    dependencies: [.product(name: \"Messages-Extensions\")]\n  ),\n]\n```\n\nThen add the following imports and calls in any Swift file in your module.\n\n```swift\nimport Messages_Extensions\nimport OSLog\n\n// Log an event\nOSLog.logEvent(.event, \"Creating MSMessage layout\")\n\n// Begin \u0026 end a signpost\nOSLog.logEvent(.begin, \"MSMessage\")\n// do something...\nOSLog.logEvent(.end, \"MSMessage\")\n```\n\n## Example\n\nFilter with `MSMessage` to help cut the logs.\n\n```console\n[com.roblabs.log-Messages], viewDidLoad(), line: 162, 📝\n[com.roblabs.log-Messages], viewWillLayoutSubviews(), line: 122, 📝\n[com.roblabs.log-Messages], viewDidLayoutSubviews(), line: 117, 📝\n[com.roblabs.log-Messages], viewWillAppear(_:), line: 137, 📝\nwillBecomeActive(with:), line: 21, MSMessage: Extension State\ndidBecomeActive(with:), line: 38, MSMessage: Extension State\nwillTransition(to:), line: 22, MSMessage: Presentation Styles\ndidTransition(to:), line: 37, MSMessage: Presentation Styles\nwillResignActive(with:), line: 48, MSMessage: Extension State\ndidResignActive(with:), line: 57, MSMessage: Extension State\ndidStartSending(_:conversation:), line: 75, MSMessage: Tracking Messages\nwillResignActive(with:), line: 48, MSMessage: Extension State\ndidResignActive(with:), line: 57, MSMessage: Extension State\nwillBecomeActive(with:), line: 21, MSMessage: Extension State\ndidBecomeActive(with:), line: 38, MSMessage: Extension State\ndidTransition(to:), line: 37, MSMessage: Presentation Styles\nwillTransition(to:), line: 22, MSMessage: Presentation Styles\ndidTransition(to:), line: 37, MSMessage: Presentation Styles\n[com.roblabs.log-Messages], collectionView(_:didSelectItemAt:), line: 260, message.summaryText: \"New Message from iMessage App sent\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblabs%2Fmessages-extensions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froblabs%2Fmessages-extensions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblabs%2Fmessages-extensions/lists"}