[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6786":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":10,"updatedAt":23,"readmeContent":24,"aiSummary":25,"trendingCount":15,"starSnapshotCount":15,"syncStatus":26,"lastSyncTime":27,"discoverSource":28},6786,"DTCoreText","Cocoanetics\u002FDTCoreText","Cocoanetics","Methods to allow using HTML code with CoreText","",null,"Swift",6393,1189,199,0,3,40.23,"BSD 2-Clause \"Simplified\" License",false,"develop",true,[],"2026-06-12 02:01:30","DTCoreText\n==========\n\nDTCoreText generates `NSAttributedString` (and SwiftUI `AttributedString`) from HTML on iOS, macOS, and tvOS. It uses CoreText for layout and rendering, giving you full control over rich text display without a web view.\n\nThe project covers two broad areas:\n\n1. **Parsing and layout** - Generating attributed strings from HTML, interfacing with CoreText\n2. **User interface** - `DTAttributedTextView`, `DTAttributedLabel` and related classes for rendering rich text\n\nInstallation\n------------\n\nDTCoreText is a Swift package. Add it in Xcode via **File > Add Package Dependencies…** using:\n\n    https:\u002F\u002Fgithub.com\u002FCocoanetics\u002FDTCoreText.git\n\nOr in your `Package.swift`:\n\n```swift\n.package(url: \"https:\u002F\u002Fgithub.com\u002FCocoanetics\u002FDTCoreText.git\", from: \"2.0.0\")\n```\n\nThen link the `DTCoreText` product to your target.\n\nDocumentation\n-------------\n\nDocumentation can be [browsed online](https:\u002F\u002Fswiftpackageindex.com\u002FCocoanetics\u002FDTCoreText\u002Fdocumentation\u002Fdtcoretext).\n\nChangelog: [GitHub Releases](https:\u002F\u002Fgithub.com\u002FCocoanetics\u002FDTCoreText\u002Freleases)\n\nThere is also a [Programming Guide](Documentation\u002FProgramming%20Guide-template.markdown) with solutions to common problems.\n\nFollow [@cocoanetics](http:\u002F\u002Ftwitter.com\u002Fcocoanetics) on Twitter or subscribe to the [Cocoanetics Blog](http:\u002F\u002Fwww.cocoanetics.com) for news and updates.\n\nLicense\n-------\n\nIt is open source and covered by a standard 2-clause BSD license. That means you have to mention *Cocoanetics* as the original author of this code and reproduce the LICENSE text inside your app.\n\nYou can purchase a [Non-Attribution-License](https:\u002F\u002Fwww.cocoanetics.com\u002Forder\u002F?product_id=DTCoreText) for 75 Euros for not having to include the LICENSE text.\n\nWe also accept sponsorship for specific enhancements which you might need. Please [contact us via email](mailto:oliver@cocoanetics.com?subject=DTCoreText) for inquiries.\n","DTCoreText 是一个用于将 HTML 代码转换为 `NSAttributedString`（及 SwiftUI `AttributedString`）的库，适用于 iOS、macOS 和 tvOS 平台。该项目利用 CoreText 进行布局和渲染，允许开发者在不使用 WebView 的情况下完全控制富文本显示。其核心功能包括从 HTML 生成带属性的字符串以及提供 `DTAttributedTextView` 和 `DTAttributedLabel` 等用户界面组件来渲染这些富文本。适合需要在原生应用中展示复杂格式化文本但又不想依赖 WebView 的场景。",2,"2026-06-11 03:08:52","top_language"]