All Projects → rjstelling → Hostess.swift

rjstelling / Hostess.swift

Licence: other
A Swift implementation of NSHost that works on iOS, OS X and tvOS. Hostess.swift is safe to use in a framework because it does not require a bridging header. Hostess is Swift 4.0 (or newer) only and replaces the Swift 2.x only Host.swift.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to Hostess.swift

Open Source Ios Apps
📱 Collaborative List of Open-Source iOS Apps
Stars: ✭ 28,826 (+106662.96%)
Mutual labels:  tvos, watchos, iphone, ipad, apple-tv
Canijailbreak.com
a website which tells you whether you can jailbreak your iOS device.
Stars: ✭ 112 (+314.81%)
Mutual labels:  iphone, ipad, apple-tv
SpecTools
Write less test code with this set of spec tools. Swift, iOS, testing framework independent (but works well with Quick/Nimble or directly).
Stars: ✭ 38 (+40.74%)
Mutual labels:  watchos, iphone, ipad
BDLocalizedDevicesModels
Apple devices model names localized.
Stars: ✭ 23 (-14.81%)
Mutual labels:  iphone, ipad, apple-tv
Clendar
Clendar - universal calendar app. Written in SwiftUI. Available on App Store
Stars: ✭ 153 (+466.67%)
Mutual labels:  watchos, iphone, ipad
Swiftui Kit
A SwiftUI system components and interactions demo app
Stars: ✭ 1,733 (+6318.52%)
Mutual labels:  tvos, watchos, ipad
Wwdc
You don't have the time to watch all the WWDC session videos yourself? No problem me and many contributors extracted the gist for you 🥳
Stars: ✭ 2,561 (+9385.19%)
Mutual labels:  tvos, watchos, ipad
OTResizableView
OTResizableView is a UIView library that can be resized with fingers.
Stars: ✭ 47 (+74.07%)
Mutual labels:  iphone, ipad
ALButtonMenu
A simple, fully customizable menu solution for iOS.
Stars: ✭ 45 (+66.67%)
Mutual labels:  iphone, ipad
tvos-soap4.me
tvOS app for soap4.me video service https://soap4.me/
Stars: ✭ 22 (-18.52%)
Mutual labels:  tvos, apple-tv
UitzendingGemist
An *Unofficial* Uitzending Gemist application for Apple TV 4 (**deprecated, use TV Gemist ☝🏻**)
Stars: ✭ 48 (+77.78%)
Mutual labels:  tvos, apple-tv
Meme-Maker-iOS
Meme Maker open source iOS app made in Swift.
Stars: ✭ 59 (+118.52%)
Mutual labels:  iphone, ipad
SeedTruck
Torrent management app for iOS, macOS, tvOS and watchOS made in SwiftUI 2. Same codebase for all platforms!
Stars: ✭ 25 (-7.41%)
Mutual labels:  tvos, watchos
stinsen
Coordinators in SwiftUI. Simple, powerful and elegant.
Stars: ✭ 563 (+1985.19%)
Mutual labels:  tvos, watchos
BJOTPViewController
Entering OTP made simpler.
Stars: ✭ 42 (+55.56%)
Mutual labels:  iphone, ipad
HapticGenerator
Easy peasy haptic generation in iOS.
Stars: ✭ 32 (+18.52%)
Mutual labels:  iphone, ipad
OpenAPI-ObjectiveC
KKBOX Open API Developer SDK for iOS/macOS/watchOS/tvOS
Stars: ✭ 19 (-29.63%)
Mutual labels:  tvos, watchos
DiscoverRandomQuotes
Spontaneous - Random quotes is a free iOS app that generates random quotes. It values ease-of-use just as much as the users' privacy, so there are no ads or trackers to disrupt their experience. The app currently includes more than 75000 quotes, which you can only discover randomly.
Stars: ✭ 34 (+25.93%)
Mutual labels:  watchos, ipad
DartBible-Flutter
cross-platform mobile bible app [Android & iOS / iPhone / iPad]; written in Dart programming language
Stars: ✭ 26 (-3.7%)
Mutual labels:  iphone, ipad
Johnny
Melodic Caching for Swift
Stars: ✭ 36 (+33.33%)
Mutual labels:  tvos, watchos

Hostess.swift

Swift Platform Carthage compatible CocoaPods License

UPDATE 2019: HOSTESS CANNOT READ THE SSID AS OF IOS 13

A Swift implementation of NSHost (Host in Swift) that works on iOS, OS X and tvOS.

Hostess.swift is safe to use in a framework because it does not require a bridging header.

Usage

Carthage

Adding Hostess to your Xcode project using Carthage is very straightforward:

github "rjstelling/Hostess.swift"

Run carthage to download and build the framework.

Cocopods

Installing Hostess using Cocoapods, add the following line to your Podfile:

pod 'Hostess', '~> 1.0'

Then run the pod install command.

Motivation

Hostess.swift was created because NSHost is unavailable on iOS and CFHost does not offer the full functionality of it OS X counterpart.

In addition, those developers hoping for a pure-Swift solution were out of luck without using a bridging header.

Hostess.swift does not use a bridging header, so is safe to use in Framework development. It is 100% Swift and tries to maintain as much type safety as the low level networking C API will allow.

Example

let hostess = Hostess()
let deviceIP = hostess.addresses.first
print("IP: \(deviceIP)") // Will print a dot-separated IP address, e.g: 17.24.2.55

What happend to Host.swift?

Host.swift is still available but is considered end of life and I will not be maintaining it.

With the switch to Swift 3 Apple removed the NS prefix from many Foundation classes. This caused Host to clash with the renamed NSHost.

A new name was required... Hostess was chosen.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].