Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.
Login
Login
OnlineGDB Q&A
Questions
Unanswered
Tags
Ask a Question
Ask a Question
How can I do a multiple-file project in Swift?
+8
votes
asked
Feb 28, 2025
by
Steven Dubin (Steve)
(
200
points)
I see that OnlineGDB supports multiple-file projects for some languages, including C. But C uses .h files to help resolve external references. How can I do the same type of thing in Swift?
Thanks!
swift
multiple
file
Please
log in
or register to answer this question.
1 Answer
0
votes
answered
Mar 15, 2025
by
abhiram rangavajhala
(
810
points)
You need to use Objective-C bridging headers. Here is an article concerning the issue:
https://www.dhiwise.com/post/swift-bridging-headers-what-every-ios-developer-needs-to-know#:~:text=A%20bridging%20header%2C%20formally%20known,same%20app%20or%20framework%20target
.
Please
log in
or register to add a comment.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and receive answers from other members of the community.
...