I have two files in in my project
A.swift
struct A {
static let name = "Name"
}
B.swift
class ABC {
private struct A {
static let local = "local name"
}
func something() {
// How to access A.name from here?
}
}
I have two files in in my project
A.swift
struct A {
static let name = "Name"
}
B.swift
class ABC {
private struct A {
static let local = "local name"
}
func something() {
// How to access A.name from here?
}
}
Assuming the name of your project/module is MyProject
func something() {
print(MyProject.A.name)
}