Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tachoknight/helloswiftandcpp
A sample project that mixes Apple's Swift language with Objective C and C++
https://github.com/tachoknight/helloswiftandcpp
c-plus-plus objective-c swift
Last synced: 3 months ago
JSON representation
A sample project that mixes Apple's Swift language with Objective C and C++
- Host: GitHub
- URL: https://github.com/tachoknight/helloswiftandcpp
- Owner: tachoknight
- Created: 2014-06-12T18:33:10.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-07-28T23:05:17.000Z (over 5 years ago)
- Last Synced: 2023-03-23T16:43:09.461Z (almost 2 years ago)
- Topics: c-plus-plus, objective-c, swift
- Language: Objective-C
- Size: 21.7 MB
- Stars: 25
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
HelloSwiftAndCPP
================A sample project that mixes Apple's Swift language with Objective C and C++. I wrote it trying to figure out how I can add existing C++ code into a Swift project. It's meant to be C++/ObjC/Swift 101 just to show the interop between the three, without getting bogged down in frameworks.
main.swift
- The main program that calls both Objective C and C++ (via Objective C++) codeSomeCPPClass.cpp/h
- A regular C++ class using iostream and string
HelloSwiftAndCPP-Bridging-Header.h
- The file necessary to expose the Objective C/C++ classes to Swift
XYZSomething.m/h
- Basic Objective C class
ABCpp.mm/h
- Objective C++ class that uses SomeCPPClass