文件名称:Formatting
文件大小:29KB
文件格式:ZIP
更新时间:2024-04-21 03:15:04
Swift
格式设定 的示例代码 。 演示如何使用XML标签实现基本的字符串格式。 let input = " M1 delivers up to 2.8x faster processing performance than the previous generation. " let text = String ( format : input, " https://support.apple.com/kb/SP799 " ) let style = FormattedStringStyle ( attributes : [ " body " : [. font : UIFont. systemFont ( ofSize : 15 )], " b " : [. font : UIFont. boldSystemFont ( ofSi
【文件预览】:
Formatting-master
----.github()
--------FUNDING.yml(638B)
----Source()
--------Formatting.swift(7KB)
----Formatting.xcworkspace()
--------xcshareddata()
--------contents.xcworkspacedata(230B)
----Formatting.playground()
--------Contents.swift(2KB)
--------contents.xcplayground(190B)
----Tests()
--------FormattingTests.swift(7KB)
--------Info.plist(701B)
--------PerformanceTests.swift(937B)
----Host()
--------Preview Content()
--------Info.plist(2KB)
--------ContentView.swift(385B)
--------HostApp.swift(273B)
--------Assets.xcassets()
----README.md(939B)
----Package.swift(505B)
----Formatting.xcodeproj()
--------xcshareddata()
--------project.xcworkspace()
--------project.pbxproj(28KB)
----.gitignore(1KB)
----Formatting()
--------Info.plist(752B)
--------Formatting.h(517B)