Skip to content

📦 Swift Package implementing Bonjour for iOS - macOS communication

Notifications You must be signed in to change notification settings

superturboryan/XinChao

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

XinChào 🇻🇳👋

“Xin chào” is a Vietnamese greeting that means “hello” in English. It's a polite way to say hello, and is often used when greeting the elderly or someone you admire.

XinChào is a minimal Swift Package enabling communication between iOS + macOS. It provides simplified SwiftUI-friendly wrappers around NWListener + NWBrowser from Apple's Network framework.

TLDR

Send messages between iOS + macOS devices running on the same Wifi. AKA Bonjour 🇫🇷🤝

Requirements

Add the following values to your targets' info.plist:

<key>NSBonjourServices</key>
<array>
    <string>YOUR BONJOUR SERVICE NAME HERE</string>
</array>
<key>NSLocalNetworkUsageDescription</key>
<string>The app needs to access devices on your local network to send messages.</string>

Dependencies

📚 Network

Contributing

Contributions and feedback are welcome! 🧑‍💻👩‍💻

Here are a few guidelines:

  • You can open an Issue or raise a PR 🤝
  • Commit messages should contain emojis ❤️ and be signed 🔏
  • main should be linear 🎋

About

📦 Swift Package implementing Bonjour for iOS - macOS communication

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages