Skip to content

Commit 633e220

Browse files
committed
add includecode markers in storage sample
1 parent c3d41f7 commit 633e220

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

samples/swift/FirebaseUI-demo-swift/Samples/StorageViewController.swift

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ class StorageViewController: UIViewController {
3333

3434
// Notification boilerplate to handle keyboard appearance/disappearance
3535
NotificationCenter.default.addObserver(self,
36-
selector: #selector(keyboardWillShow),
37-
name: NSNotification.Name.UIKeyboardWillShow,
38-
object: nil)
36+
selector: #selector(keyboardWillShow),
37+
name: NSNotification.Name.UIKeyboardWillShow,
38+
object: nil)
3939
NotificationCenter.default.addObserver(self,
40-
selector: #selector(keyboardWillHide),
41-
name: NSNotification.Name.UIKeyboardWillHide,
42-
object: nil)
40+
selector: #selector(keyboardWillHide),
41+
name: NSNotification.Name.UIKeyboardWillHide,
42+
object: nil)
4343
}
4444

4545
@IBAction fileprivate func loadButtonPressed(_ sender: AnyObject) {
@@ -49,12 +49,14 @@ class StorageViewController: UIViewController {
4949

5050
self.storageRef = FIRStorage.storage().reference(withPath: url.path)
5151

52+
// [START firebaseui_load_image]
5253
self.imageView.sd_setImage(with: self.storageRef,
53-
placeholderImage: nil) { (image, error, cacheType, storageRef) in
54+
placeholderImage: nil) { (image, error, cacheType, storageRef) in
5455
if let error = error {
5556
print("Error loading image: \(error)")
5657
}
5758
}
59+
// [END firebaseui_load_image]
5860
}
5961

6062
// MARK: Keyboard boilerplate

samples/swift/Podfile

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
target 'FirebaseUI-demo-swift' do
22
use_frameworks!
33

4-
pod 'FirebaseUI', :podspec => 'https://raw.githubusercontent.com/firebase/FirebaseUI-iOS/master/FirebaseUI.podspec'
4+
# Used for developing with the latest podspec in GitHub.
5+
# pod 'FirebaseUI', :podspec => 'https://raw.githubusercontent.com/firebase/FirebaseUI-iOS/master/FirebaseUI.podspec'
6+
7+
pod 'FirebaseUI/Database'
8+
9+
pod 'FirebaseUI/Auth'
10+
pod 'FirebaseUI/Facebook'
11+
pod 'FirebaseUI/Google'
12+
pod 'FirebaseUI/Twitter'
13+
14+
# [START include_firebaseui_storage]
15+
pod 'FirebaseUI/Storage'
16+
# [END include_firebaseui_storage]
517

618
target 'FirebaseUI-demo-swiftTests' do
719
inherit! :search_paths
820
end
921

1022
end
11-

0 commit comments

Comments
 (0)