Reputation: 169
When I change main navigation controller(view controller.swif) to profileviewcontroller.swift my
override func viewDidLoad() {
super.viewDidLoad()
createTop()
}
my createTop()
in profileviewcontroller.swift function can't add something to self.view
. And when I write import "Sn" (when I want to write SnapKit) word Snapkit is strikeout.
Upvotes: 0
Views: 512
Reputation: 353
make sure SnapKit library appears both on Embedded Binaries
and on Linked Frameworks and Libraries
on your Project Settings > General
You will probably be able to use snp
namespace even without adding import SnapKit
Upvotes: 1