Skip to content

A pure (ish) Swift implementation of NSHost that works on iOS and can be used without a bridging header.

License

Notifications You must be signed in to change notification settings

carabina/Host.swift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Host.swift

Carthage compatible

A pure (ish) Swift implementation of NSHost that works on iOS and can be used without a bridging header.

Example

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

About

A pure (ish) Swift implementation of NSHost that works on iOS and can be used without a bridging header.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 93.6%
  • Objective-C 6.4%