{"id":2777,"url":"https://github.com/MaximKotliar/Bartinter","last_synced_at":"2025-08-03T12:31:07.120Z","repository":{"id":50332729,"uuid":"137921876","full_name":"MaximKotliar/Bartinter","owner":"MaximKotliar","description":"Dynamically changes status bar style depending on content behind it","archived":false,"fork":false,"pushed_at":"2019-10-23T12:38:27.000Z","size":4354,"stargazers_count":1717,"open_issues_count":7,"forks_count":86,"subscribers_count":22,"default_branch":"master","last_synced_at":"2024-10-29T17:46:25.524Z","etag":null,"topics":["automatically","bar","content-dependent","status","tint","uikit","uistatusbar"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaximKotliar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-19T17:10:19.000Z","updated_at":"2024-10-26T15:53:27.000Z","dependencies_parsed_at":"2022-08-26T03:10:48.589Z","dependency_job_id":null,"html_url":"https://github.com/MaximKotliar/Bartinter","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximKotliar%2FBartinter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximKotliar%2FBartinter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximKotliar%2FBartinter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximKotliar%2FBartinter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaximKotliar","download_url":"https://codeload.github.com/MaximKotliar/Bartinter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228543099,"owners_count":17934426,"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","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":["automatically","bar","content-dependent","status","tint","uikit","uistatusbar"],"created_at":"2024-01-05T20:16:22.586Z","updated_at":"2024-12-07T00:30:53.775Z","avatar_url":"https://github.com/MaximKotliar.png","language":"Swift","funding_links":[],"categories":["UI","Swift","HarmonyOS"],"sub_categories":["Status Bar","Windows Manager"],"readme":"[![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/vsouza/awesome-ios)\n[![Version](https://img.shields.io/cocoapods/v/Bartinter.svg?style=flat-square)](http://cocoapods.org/pods/Bartinter)\n[![License](https://img.shields.io/cocoapods/l/Bartinter.svg?style=flat-square)](http://cocoapods.org/pods/Bartinter)\n[![Platform](https://img.shields.io/cocoapods/p/Bartinter.svg?style=flat-square)](http://cocoapods.org/pods/Bartinter)\n\n# Bartinter\nStatus bar apperance manager that make your status bar readable by dynamically changing it's color depending on content behind.\n\u003cp align=\"center\"\u003e\n    \u003cimg src =\"https://raw.githubusercontent.com/MaximKotliar/Bartinter/master/demo.gif\" /\u003e\n\u003c/p\u003e\n\n## Installation\nAdd\n\n```ruby\npod 'Bartinter'\n```\nto your podfile, and run\n\n```\npod install\n```\n\n## Usage\n\nSet \"View controller-based status bar appearance\" (UIViewControllerBasedStatusBarAppearance) to YES in your Info.plist. \nSet ViewController's `updatesStatusBarAppearanceAutomatically = true`\n\nThat's it.\n\n### Swizzling\nBy default, bartinter swizzles a couple methods for your convenience. (see: `UIKitSwizzling.swift`)\nIf you are not ok with method swizzling, you can disable it by following line: \n```swift\nBartinter.isSwizzlingEnabled = false\n```\nWithout swizzling you need to do some things manually: \n\nFirstly, you need to provide `childViewControllerForStatusBarStyle`, in your ViewController subclass just add following: \n```swift\noverride var childViewControllerForStatusBarStyle: UIViewController? {\n    return statusBarUpdater\n}\n```\n\nSecondly, you need to decide, when you need to refresh status bar style, for example on tableView scroll, so add: \n```swift\nfunc scrollViewDidScroll(_ scrollView: UIScrollView) {\n    statusBarUpdater?.refreshStatusBarStyle()\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMaximKotliar%2FBartinter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMaximKotliar%2FBartinter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMaximKotliar%2FBartinter/lists"}