Minitour / AZTabBarController

A custom tab bar controller for iOS written in Swift 4.2
MIT License
348 stars 65 forks source link

Manual installation #46

Closed iDevelopper closed 6 years ago

iDevelopper commented 6 years ago

Great project!

What if we don't want to use CocoaPods?

Drag and drop source folder in the project. Drag and drop EasyNotificationBadge.swift to the project because your project need it.

In AZTabBarController.swift and AZTabBarButton.swift,

import EasyNotificationBage will cause the error: No such module 'EasyNotificationBadge'.

I would suggest adding the build import test in both files:

#if canImport(EasyNotificationBadge)
import EasyNotificationBadge
#endif

references: https://github.com/apple/swift-evolution/blob/master/proposals/0075-import-test.md https://bugs.swift.org/browse/SR-1560

Minitour commented 6 years ago

@iDevelopper good idea! Will add it in the next release. Thanks for contributing!