{"id":16683860,"url":"https://github.com/meniny/easyattributedstring","last_synced_at":"2025-07-03T22:04:08.099Z","repository":{"id":56909665,"uuid":"135997590","full_name":"Meniny/EasyAttributedString","owner":"Meniny","description":"✏️ Make AttributedString much more easier.","archived":false,"fork":false,"pushed_at":"2019-04-11T15:34:11.000Z","size":19198,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-03T22:02:22.143Z","etag":null,"topics":["attributedstring","nsattributedstring","rich-text"],"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/Meniny.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-04T08:53:46.000Z","updated_at":"2019-04-11T15:33:54.000Z","dependencies_parsed_at":"2022-08-21T04:20:28.620Z","dependency_job_id":null,"html_url":"https://github.com/Meniny/EasyAttributedString","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Meniny/EasyAttributedString","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEasyAttributedString","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEasyAttributedString/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEasyAttributedString/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEasyAttributedString/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Meniny","download_url":"https://codeload.github.com/Meniny/EasyAttributedString/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Meniny%2FEasyAttributedString/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263410761,"owners_count":23462295,"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":["attributedstring","nsattributedstring","rich-text"],"created_at":"2024-10-12T14:26:54.359Z","updated_at":"2025-07-03T22:04:07.882Z","avatar_url":"https://github.com/Meniny.png","language":"Swift","readme":":name: EasyAttributedString\n:author: Elias Abel\n:author_esc: Elias%20Abel\n:mail: admin@meniny.cn\n:desc: a tool kit makes AttributedString much more easier.\n:icon: {name}.png\n:version: 1.1.0\n:na: N/A\n:ios: 8.0\n:macos: 10.10\n:watchos: 2.0\n:tvos: 9.0\n:linux: {na}\n:xcode: 10.2\n:swift: 5\n:license: MIT\n:sep: %20%7C%20\n:platform: iOS{sep}macOS{sep}watchOS{sep}tvOS\n// :toc: left\n:toclevels: 6\n:toc-title: TOC\n:source-highlighter: highlightjs\n// :source-highlighter: pygments\n= Meet `{name}`\n{author} \u003c{mail}\u003e\nv{version}, 2018-06-04\n\n[subs=\"attributes\"]\n++++\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./Assets/{icon}\" alt=\"{name}\" width=\"200px\"\u003e\n  \u003cbr/\u003e\u003cbr/\u003e\n  \u003cimg alt=\"Author\" src=\"https://img.shields.io/badge/author-{author_esc}-blue.svg\"\u003e\n  \u003cimg alt=\"EMail\" src=\"https://img.shields.io/badge/mail-{mail}-orange.svg\"\u003e\n  \u003cimg alt=\"MIT\" src=\"https://img.shields.io/badge/license-{license}-blue.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-{version}-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Platforms\" src=\"https://img.shields.io/badge/platform-{platform}-lightgrey.svg\"\u003e\n  \u003cimg alt=\"Swift\" src=\"https://img.shields.io/badge/swift-{swift}%2B-orange.svg\"\u003e\n  \u003cbr/\u003e\n  \u003cimg alt=\"Build Passing\" src=\"https://img.shields.io/badge/build-passing-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Cocoapods\" src=\"https://img.shields.io/badge/cocoapods-compatible-brightgreen.svg\"\u003e\n  \u003cimg alt=\"Carthage\" src=\"https://img.shields.io/badge/carthage-compatible-brightgreen.svg\"\u003e\n  \u003cimg alt=\"SPM\" src=\"https://img.shields.io/badge/spm-compatible-brightgreen.svg\"\u003e\n\u003c/p\u003e\n++++\n\n:toc:\n\n== 🏵 Introduction\n\n**{name}** is {desc}.\n\n== 📋 Requirements\n\n[%header]\n|===\n2+^m|Type 1+^m|Requirement\n\n1.5+^.^|Platform ^|iOS ^|{ios}+\n^|macOS ^|{macos}\n^|tvOS ^|{tvos}\n^|watchOS ^|{watchos}\n^|Linux ^|{linux}\n\n^|IDE ^|Xcode ^| {xcode}+\n^|Language ^|Swift ^| {swift}+\n|===\n\n== 📲 Installation\n\n=== CocoaPods\n\n`{name}` is available on link:https://cocoapods.org[CocoaPods].\n\n[source, ruby, subs=\"verbatim,attributes\"]\n----\nuse_frameworks!\npod '{name}'\n----\n\n=== Manually\n\nCopy all files in the `{name}` directory into your project.\n\n== 🛌 Dependency\n\n{na}\n\n== ❤️ Contribution\n\nYou are welcome to fork and submit pull requests.\n\n== 🔖 License\n\n`{name}` is open-sourced software, licensed under the link:./LICENSE.md[`{license}`] license.\n\n== 🔫 Usage\n\n[source, swift, subs=\"verbatim,attributes\"]\n----\nimport {name}\n\nlet style = EAStyle {\n\t$0.font = EASystemFonts.AmericanTypewriter.font(size: 25)\n\t$0.color = #colorLiteral(red:0.99, green:0.44, blue:0.29, alpha:1.00)\n\t$0.underline = (.patternDot, #colorLiteral(red:0.21, green:0.84, blue:0.98, alpha:1.00))\n\t$0.alignment = .center\n}\n// et voilà!\nlet attributedText = \"Hello World!\".set(style: style)\n----\n\n[source, swift, subs=\"verbatim,attributes\"]\n----\nimport {name}\n\nlet myStyle = EAStyle {\n  // define attributes...\n}\nEAStyleManager.shared.register(\"SomeStyle\", style: style)\n\nlet label = UILabel.init()\nlabel.styleName = \"SomeStyle\"\nlabel.styledText = \"Hello, \u003cred\u003eWorld\u003c/red\u003e!\"\n----\n\n[source, swift, subs=\"verbatim,attributes\"]\n----\nimport {name}\n\nlet normal = EAStyle {\n    $0.font = EASystemFonts.Helvetica_Light.font(size: 15)\n}\nlet red = normal.byAdding {\n    $0.color = #colorLiteral(red:0.80, green:0.20, blue:0.20, alpha:1.00)\n}\n----\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Feasyattributedstring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeniny%2Feasyattributedstring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeniny%2Feasyattributedstring/lists"}