Sha256: 546facf1a0fdc124fca3debbb3fb5f2da7926c9f26686ecdc10f71b5f035881c

Contents?: true

Size: 905 Bytes

Versions: 4

Compression:

Stored size: 905 Bytes

Contents

# Using Cocoapods-Keys in Swift projects

Once you've followed the setup instructions described in the [Usage](/orta/cocoapods-keys#usage)
section of the README, you have two choices.

## Using the bridge header

If you want to make your keys available to your whole project:

1. Make sure you have a [bridging header](https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/BuildingCocoaApps/MixandMatch.html) already setup.
2. In the bridging header, import the generated key file:
```objectivec
#import <Keys/MyApplicationKeys.h>
```

## Importing the framework

If you've added the `use_frameworks!` and only want your Keys to be available in
specific files, simply use Swift's `import` statement. The name of the generated
module is `Keys`.

```swift
import Keys
```

## Usage

```swift
let keys = MyApplicationKeys()
ARAnalytics.setupWithAnalytics(keys.analyticsToken)
```

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cocoapods-keys-1.4.0 SWIFT_PROJECTS.md
cocoapods-keys-1.3.2 SWIFT_PROJECTS.md
cocoapods-keys-1.3.1 SWIFT_PROJECTS.md
cocoapods-keys-1.3.0 SWIFT_PROJECTS.md