Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use other doc for Objective-C usage #43

Merged
merged 4 commits into from
Mar 18, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Create Objective-C usage markdown file
  • Loading branch information
Husseinhj authored Mar 18, 2018
commit 3678f565cca9312c73fb2de6d0a64681f9d21db9
32 changes: 32 additions & 0 deletions docs-standalone/Objective-C.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Objective-C usage

After installing `MaterialShowcase` pod, please follow the below instructions to set it up in Objective-C project.

![Objective-C showcase](https://raw.githubusercontent.com/Husseinhj/material-showcase-ios/fix/objc_property/art/ObjectiveCSupportScreenshot.png)

**OR**

Add below Cocoapods script to your pod file :

``` ruby
# platform :ios, '9.0'

target 'YOUR_PROJECT_NAME' do
use_frameworks!

pod 'MaterialShowcase'

post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name.include?('MaterialShowcase')
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '3.2'
end
end
end
end

end
```

Using `#import "MaterialShowcase-Swift.h"` to import library to your class.