Zhandos.Nurakhmetov
Zhandos.Nurakhmetov

Reputation: 169

swift: SnapKit in swift doesn't work

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

Answers (1)

MDompekidis
MDompekidis

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

Related Questions