{"id":15029230,"url":"https://github.com/madebybowtie/flagkit","last_synced_at":"2025-04-11T11:37:39.630Z","repository":{"id":44368233,"uuid":"41052793","full_name":"madebybowtie/FlagKit","owner":"madebybowtie","description":"Beautiful flag icons for usage in apps and on the web.","archived":false,"fork":false,"pushed_at":"2024-04-19T11:11:58.000Z","size":67904,"stargazers_count":3063,"open_issues_count":32,"forks_count":331,"subscribers_count":53,"default_branch":"master","last_synced_at":"2025-04-06T04:01:43.161Z","etag":null,"topics":["flag-icons","flags","icons","ios","macos","tvos"],"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/madebybowtie.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-19T18:35:42.000Z","updated_at":"2025-03-25T02:11:38.000Z","dependencies_parsed_at":"2024-06-18T12:29:37.749Z","dependency_job_id":"6b4a05c4-6980-4b9b-9f51-8bba17f4a3ba","html_url":"https://github.com/madebybowtie/FlagKit","commit_stats":{"total_commits":109,"total_committers":12,"mean_commits":9.083333333333334,"dds":0.5504587155963303,"last_synced_commit":"f12111d91902d23fd1d9cc7ad9198030b049795d"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebybowtie%2FFlagKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebybowtie%2FFlagKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebybowtie%2FFlagKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madebybowtie%2FFlagKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madebybowtie","download_url":"https://codeload.github.com/madebybowtie/FlagKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248384830,"owners_count":21094778,"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":["flag-icons","flags","icons","ios","macos","tvos"],"created_at":"2024-09-24T20:10:02.361Z","updated_at":"2025-04-11T11:37:39.606Z","avatar_url":"https://github.com/madebybowtie.png","language":"Swift","readme":"![Header](Header.png)\n\n\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://travis-ci.org/madebybowtie/FlagKit\" target=\"_blank\"\u003e\n\u003cimg src=\"http://img.shields.io/travis/madebybowtie/FlagKit.svg?style=flat\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://github.com/Carthage/Carthage\" target=\"_blank\"\u003e\n\u003cimg src=\"https://img.shields.io/badge/Carthage-Compatible-brightgreen.svg?style=flat\" /\u003e\n\u003c/a\u003e\n\n\u003ca href=\"https://cocoapods.org/pods/FlagKit\" target=\"_blank\"\u003e\n\u003cimg src=\"https://img.shields.io/cocoapods/v/FlagKit.svg?style=flat\" /\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n# FlagKit\n\nBeautiful flag icons for usage in apps and on the web. All flags are provided as stand-alone PNG and SVG files. FlagKit also provides an Asset Catalog and framework for easy use on Apple platforms.\n\n## Installation (iOS, macOS, tvOS)\n\nFlagKit provides a framework for easy installation as a dependency. You can also manually copy the Asset Catalog into your project.\n\n### SwiftPM\nAdd the folowinig as repository URL:\n\n```\nhttps://github.com/madebybowtie/FlagKit.git\n```\n\n### Carthage\nAdd the following line to your `Cartfile`:\n\n```\ngithub \"madebybowtie/FlagKit\"\n```\n\n### CocoaPods\nAdd the following line to your `Podfile`:\n\n```\npod 'FlagKit'\n```\n\n### Manual\nAdd `Assets/FlagKit.xcassets` to your target.\n\n## Usage (iOS, macOS, tvOS)\nFlagKit provides both rectangular unstyled flags and styled flags in a variety of shapes. Our [sample project](Sources/Swift/FlagKitDemo-iOS) demonstrates how to display flags and customize them into different shapes (rounded corners, square, circle).\n\n\u003e **Note:** Styling is currently not supported by FlagKit on macOS\n\nThis brief example loads the flag for the users current locale, and retrieves the unstyled flag and a styled flag:\n\n```swift\nlet countryCode = Locale.current.regionCode!\nlet flag = Flag(countryCode: countryCode)!\n\n// Retrieve the unstyled image for customized use\nlet originalImage = flag.originalImage\n\n// Or retrieve a styled flag\nlet styledImage = flag.image(style: .circle)\n```\n\nYou can always access the underlying assets directly, through the bundled Asset Catalog:\n\n```swift\nlet countryCode = Locale.current.regionCode!\nlet bundle = FlagKit.assetBundle\nlet originalImage = UIImage(named: countryCode, in: bundle, compatibleWith: nil)\n```\n\n## Reference\n\nFlagKit provides over 250 flags. A list of all flags can be [found here](Assets/Flags.md).\n\n## More Info\n\nHave a question? Please [open an issue](https://github.com/madebybowtie/FlagKit/issues/new)!\n\n## License\n\nFlagKit is released under the MIT license. See\n[LICENSE](https://github.com/madebybowtie/FlagKit/blob/master/LICENSE).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebybowtie%2Fflagkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadebybowtie%2Fflagkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadebybowtie%2Fflagkit/lists"}