Skip to content

Commit

Permalink
Re-format all files
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-vieira committed Mar 11, 2021
1 parent 469b904 commit 4ed3322
Show file tree
Hide file tree
Showing 253 changed files with 280 additions and 303 deletions.
2 changes: 1 addition & 1 deletion DemoApp/AdvancedOptionsViewController.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion DemoApp/AppDelegate.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion DemoApp/CreateChatViewController.swift
Expand Up @@ -17,7 +17,7 @@ class CreateChatViewController: UIViewController {
class DemoComposerVC: _ChatMessageComposerVC<NoExtraData> {
override func createNewMessage(text: String, quotedMessageId: MessageId? = nil, attachments: [AttachmentEnvelope] = []) {
guard let navController = parent?.parent as? UINavigationController,
let controller = controller else { return }
let controller = controller else { return }
// Create the Channel on backend
controller.synchronize { error in
// TODO: handle error
Expand Down
2 changes: 1 addition & 1 deletion DemoApp/DemoUsers.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion DemoApp/LoginViewController.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Nuke
Expand Down
2 changes: 1 addition & 1 deletion DemoApp/NameGroupViewController.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion DemoApp/SceneDelegate.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
Expand Up @@ -22,8 +22,8 @@ func snippet_ux_quick_start_channels_storyboard() {

// Find a UINavigationController from the window root view controller.
if let navigationController = window?.rootViewController as? UINavigationController,
// Get MyChannelListVC from the navigation controller.
let channelListVC = navigationController.viewControllers.first as? MyChannelListVC {
// Get MyChannelListVC from the navigation controller.
let channelListVC = navigationController.viewControllers.first as? MyChannelListVC {
// Filter channels by the current user.
if let currentUserId = chatClient.currentUserId {
channelListVC.controller = chatClient
Expand Down
Expand Up @@ -22,8 +22,8 @@ func snippet_ux_quick_start_messages_storyboard() {

// Find a UINavigationController from the window root view controller.
if let navigationController = window?.rootViewController as? UINavigationController,
// Get a MyChannelVC from the navigation controller.
let channelVC = navigationController.viewControllers.first as? MyChannelVC {
// Get a MyChannelVC from the navigation controller.
let channelVC = navigationController.viewControllers.first as? MyChannelVC {
// Pass a ChatChannelController instance to channelVC:
channelVC.channelController = chatClient.channelController(for: .init(type: .messaging, id: "general"))
}
Expand Down
3 changes: 1 addition & 2 deletions Integration/SPM/SwiftPackageManager/SceneDelegate.swift
Expand Up @@ -7,6 +7,5 @@ import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?

func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
}
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {}
}
2 changes: 1 addition & 1 deletion Sample/Extensions/Channel+Extensions.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import StreamChat
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/ChannelMember+Extensions.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import StreamChat
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/Date+Extensions.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/PingPongEmojiFormatter.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import StreamChat
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/UIColor+ForUsername.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import SwiftUI
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/UIStoryboard+Definitions.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/UITableViewController+Cells.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import StreamChat
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/UIView+InstantiateFromNib.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/UIViewController+Alert.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/UIViewController+MoveToStoryboard.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Sample/Extensions/View+AlertTextField.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import SwiftUI
Expand Down
2 changes: 1 addition & 1 deletion Sample/LogStore.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Combine
Expand Down Expand Up @@ -186,7 +186,7 @@ class CombineSimpleChannelMembersViewController: UITableViewController {
///
override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
if indexPath.section == tableView.numberOfSections - 1,
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
memberListController.loadNextMembers()
}
}
Expand Down
Expand Up @@ -168,7 +168,7 @@ class CombineSimpleChannelsViewController: UITableViewController {
///
override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
if indexPath.section == tableView.numberOfSections - 1,
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
channelListController.loadNextChannels()
}
}
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Combine
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Combine
Expand Down Expand Up @@ -198,7 +198,7 @@ class CombineSimpleUsersViewController: UITableViewController, ChatUserListContr
///
override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
if indexPath.section == tableView.numberOfSections - 1,
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
userListController.loadNextUsers()
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sample/Samples/LogsViewController.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import StreamChat
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import StreamChat
Expand Down Expand Up @@ -158,7 +158,7 @@ class SimpleChannelMembersViewController: UITableViewController, ChatChannelMemb
///
override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
if indexPath.section == tableView.numberOfSections - 1,
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
memberListController.loadNextMembers()
}
}
Expand Down
Expand Up @@ -140,7 +140,7 @@ class SimpleChannelsViewController: UITableViewController, ChatChannelListContro
///
override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
if indexPath.section == tableView.numberOfSections - 1,
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
channelListController.loadNextChannels()
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sample/Samples/SimpleChat/SimpleChatViewController.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import StreamChat
Expand Down
4 changes: 2 additions & 2 deletions Sample/Samples/SimpleChat/SimpleUsersViewController.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import StreamChat
Expand Down Expand Up @@ -170,7 +170,7 @@ class SimpleUsersViewController: UITableViewController, ChatUserListControllerDe
///
override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) {
if indexPath.section == tableView.numberOfSections - 1,
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
indexPath.row == tableView.numberOfRows(inSection: indexPath.section) - 1 {
userListController.loadNextUsers()
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sample/Samples/SimpleChat/Views/ComposerView.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Sample/Samples/SplitViewController.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Sample/Samples/SwiftUISimpleChat/ChatScrollView.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import SwiftUI
Expand Down
2 changes: 1 addition & 1 deletion Sample/Samples/SwiftUISimpleChat/ChatView.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

#if swift(>=5.3)
Expand Down
2 changes: 1 addition & 1 deletion Sample/Samples/SwiftUISimpleChat/MemberListView.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

#if swift(>=5.3)
Expand Down
2 changes: 1 addition & 1 deletion Sample/Samples/SwiftUISimpleChat/UserListView.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

#if swift(>=5.3)
Expand Down
2 changes: 1 addition & 1 deletion Sample/SceneDelegate.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import UIKit
Expand Down
2 changes: 1 addition & 1 deletion Sources/StreamChat/APIClient/APIClient.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion Sources/StreamChat/APIClient/APIClient_Mock.swift
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

@testable import StreamChat
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

@testable import StreamChat
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down
@@ -1,5 +1,5 @@
//
// Copyright 漏 2020 Stream.io Inc. All rights reserved.
// Copyright 漏 2021 Stream.io Inc. All rights reserved.
//

import Foundation
Expand Down

0 comments on commit 4ed3322

Please sign in to comment.