<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SwiftyBluetooth - 标签 - 宋明的博客</title><link>https://apolla.cc/tags/swiftybluetooth/</link><description>宋明的博客</description><generator>Hugo 0.170.0 &amp; FixIt v1.0.0-rc.5-mwimukpl</generator><language>zh-cn</language><lastBuildDate>Sat, 09 Mar 2024 23:21:58 +0800</lastBuildDate><atom:link href="https://apolla.cc/tags/swiftybluetooth/index.xml" rel="self" type="application/rss+xml"/><item><title>6：SwiftyBluetooth的使用</title><link>https://apolla.cc/posts/bluetooth/6swiftybluetooth%E7%9A%84%E4%BD%BF%E7%94%A8/</link><pubDate>Sat, 09 Mar 2024 23:21:58 +0800</pubDate><guid>https://apolla.cc/posts/bluetooth/6swiftybluetooth%E7%9A%84%E4%BD%BF%E7%94%A8/</guid><category domain="https://apolla.cc/categories/%E8%93%9D%E7%89%99/">蓝牙</category><description>&lt;h1 class="heading-element" id="简介"&gt;&lt;span&gt;简介&lt;/span&gt;&#10; &lt;a href="#%e7%ae%80%e4%bb%8b" class="heading-mark"&gt;&lt;svg class="octicon octicon-link" viewBox="0 0 16 16" version="1.1" width="16" height="16" aria-hidden="true"&gt;&lt;path d="m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z"&gt;&lt;/path&gt;&lt;/svg&gt;&lt;/a&gt;&#10;&lt;/h1&gt;&lt;p&gt;&lt;code&gt;SwiftyBluetooth&lt;/code&gt;是&lt;code&gt;Swift&lt;/code&gt;中封装&lt;code&gt;CoreBluetooth&lt;/code&gt;框架的一个开源库&lt;a href="https://link.juejin.cn?target=https%3A%2F%2Fgithub.com%2Fjordanebelanger%2FSwiftyBluetooth" target="_blank" rel="external nofollow noopener noreferrer"&gt;SwiftyBluetooth&lt;i class="fa-solid fa-external-link-alt fa-xs ms-1 text-secondary" aria-hidden="true"&gt;&lt;/i&gt;&lt;/a&gt;,个人觉得比较好用，是对&lt;code&gt;CoreBluetooth&lt;/code&gt;的封装，可自行查看代码，下面来讲讲它的使用。&lt;/p&gt;</description></item></channel></rss>