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

simulation of typing && random color of text #17

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
106 changes: 100 additions & 6 deletions Flash Chat iOS13.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
0463FC11285DEC6A00BFB8DA /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 0463FC10285DEC6A00BFB8DA /* GoogleService-Info.plist */; };
0463FC13285FC93700BFB8DA /* Constans.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0463FC12285FC93700BFB8DA /* Constans.swift */; };
0463FC15286082A000BFB8DA /* Message.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0463FC14286082A000BFB8DA /* Message.swift */; };
0463FC182863258000BFB8DA /* MessageCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0463FC162863258000BFB8DA /* MessageCell.swift */; };
0463FC192863258000BFB8DA /* MessageCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 0463FC172863258000BFB8DA /* MessageCell.xib */; };
0B628177235DEE8100E35CAF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B628176235DEE8100E35CAF /* AppDelegate.swift */; };
0B628179235DEE8100E35CAF /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B628178235DEE8100E35CAF /* SceneDelegate.swift */; };
0B62817E235DEE8100E35CAF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 0B62817C235DEE8100E35CAF /* Main.storyboard */; };
Expand All @@ -17,9 +22,15 @@
0B62818F235DF01000E35CAF /* LoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B62818E235DF01000E35CAF /* LoginViewController.swift */; };
0B628191235DF01B00E35CAF /* ChatViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0B628190235DF01B00E35CAF /* ChatViewController.swift */; };
0B62819E235F0F4D00E35CAF /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 0B62819D235F0F4D00E35CAF /* README.md */; };
D8C5B3403A36A84B76464DAD /* Pods_Flash_Chat_iOS13.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 114C4759A12D177B80CF2088 /* Pods_Flash_Chat_iOS13.framework */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
0463FC10285DEC6A00BFB8DA /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
0463FC12285FC93700BFB8DA /* Constans.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Constans.swift; sourceTree = "<group>"; };
0463FC14286082A000BFB8DA /* Message.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = Message.swift; path = "Flash Chat iOS13/Message.swift"; sourceTree = SOURCE_ROOT; };
0463FC162863258000BFB8DA /* MessageCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageCell.swift; sourceTree = "<group>"; };
0463FC172863258000BFB8DA /* MessageCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = MessageCell.xib; sourceTree = "<group>"; };
0B628173235DEE8100E35CAF /* Flash Chat iOS13.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "Flash Chat iOS13.app"; sourceTree = BUILT_PRODUCTS_DIR; };
0B628176235DEE8100E35CAF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
0B628178235DEE8100E35CAF /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
Expand All @@ -32,13 +43,17 @@
0B62818E235DF01000E35CAF /* LoginViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LoginViewController.swift; sourceTree = "<group>"; };
0B628190235DF01B00E35CAF /* ChatViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChatViewController.swift; sourceTree = "<group>"; };
0B62819D235F0F4D00E35CAF /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
114C4759A12D177B80CF2088 /* Pods_Flash_Chat_iOS13.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Flash_Chat_iOS13.framework; sourceTree = BUILT_PRODUCTS_DIR; };
41D365E32DD792F011ED41A7 /* Pods-Flash Chat iOS13.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Flash Chat iOS13.release.xcconfig"; path = "Target Support Files/Pods-Flash Chat iOS13/Pods-Flash Chat iOS13.release.xcconfig"; sourceTree = "<group>"; };
66994428E1BB42C78EA77343 /* Pods-Flash Chat iOS13.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Flash Chat iOS13.debug.xcconfig"; path = "Target Support Files/Pods-Flash Chat iOS13/Pods-Flash Chat iOS13.debug.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
0B628170235DEE8100E35CAF /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
D8C5B3403A36A84B76464DAD /* Pods_Flash_Chat_iOS13.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -51,6 +66,8 @@
0B62819D235F0F4D00E35CAF /* README.md */,
0B628175235DEE8100E35CAF /* Flash Chat iOS13 */,
0B628174235DEE8100E35CAF /* Products */,
4B2E516EB0C15FE324306018 /* Pods */,
B202153191C46618D83BBA37 /* Frameworks */,
);
sourceTree = "<group>";
};
Expand All @@ -72,7 +89,9 @@
0B628192235DF02000E35CAF /* Controllers */,
0B62817F235DEE8400E35CAF /* Assets.xcassets */,
0B628181235DEE8400E35CAF /* LaunchScreen.storyboard */,
0463FC10285DEC6A00BFB8DA /* GoogleService-Info.plist */,
0B628184235DEE8400E35CAF /* Info.plist */,
0463FC12285FC93700BFB8DA /* Constans.swift */,
);
path = "Flash Chat iOS13";
sourceTree = "<group>";
Expand All @@ -92,27 +111,49 @@
isa = PBXGroup;
children = (
0B62817C235DEE8100E35CAF /* Main.storyboard */,
0463FC162863258000BFB8DA /* MessageCell.swift */,
0463FC172863258000BFB8DA /* MessageCell.xib */,
);
path = Views;
sourceTree = "<group>";
};
0B628194235DF03A00E35CAF /* Models */ = {
isa = PBXGroup;
children = (
0463FC14286082A000BFB8DA /* Message.swift */,
);
path = Models;
sourceTree = "<group>";
};
4B2E516EB0C15FE324306018 /* Pods */ = {
isa = PBXGroup;
children = (
66994428E1BB42C78EA77343 /* Pods-Flash Chat iOS13.debug.xcconfig */,
41D365E32DD792F011ED41A7 /* Pods-Flash Chat iOS13.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
};
B202153191C46618D83BBA37 /* Frameworks */ = {
isa = PBXGroup;
children = (
114C4759A12D177B80CF2088 /* Pods_Flash_Chat_iOS13.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
0B628172235DEE8100E35CAF /* Flash Chat iOS13 */ = {
isa = PBXNativeTarget;
buildConfigurationList = 0B628187235DEE8400E35CAF /* Build configuration list for PBXNativeTarget "Flash Chat iOS13" */;
buildPhases = (
BAAF841C167AFA25DDBAA684 /* [CP] Check Pods Manifest.lock */,
0B62816F235DEE8100E35CAF /* Sources */,
0B628170235DEE8100E35CAF /* Frameworks */,
0B628171235DEE8100E35CAF /* Resources */,
73D86851AF88CFECD823892E /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand All @@ -130,7 +171,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1110;
LastUpgradeCheck = 1110;
LastUpgradeCheck = 1330;
ORGANIZATIONNAME = "Angela Yu";
TargetAttributes = {
0B628172235DEE8100E35CAF = {
Expand All @@ -147,6 +188,8 @@
Base,
);
mainGroup = 0B62816A235DEE8100E35CAF;
packageReferences = (
);
productRefGroup = 0B628174235DEE8100E35CAF /* Products */;
projectDirPath = "";
projectRoot = "";
Expand All @@ -162,14 +205,58 @@
buildActionMask = 2147483647;
files = (
0B628183235DEE8400E35CAF /* LaunchScreen.storyboard in Resources */,
0463FC192863258000BFB8DA /* MessageCell.xib in Resources */,
0B628180235DEE8400E35CAF /* Assets.xcassets in Resources */,
0463FC11285DEC6A00BFB8DA /* GoogleService-Info.plist in Resources */,
0B62819E235F0F4D00E35CAF /* README.md in Resources */,
0B62817E235DEE8100E35CAF /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
73D86851AF88CFECD823892E /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Flash Chat iOS13/Pods-Flash Chat iOS13-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Flash Chat iOS13/Pods-Flash Chat iOS13-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Flash Chat iOS13/Pods-Flash Chat iOS13-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
BAAF841C167AFA25DDBAA684 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
"${PODS_ROOT}/Manifest.lock",
);
name = "[CP] Check Pods Manifest.lock";
outputFileListPaths = (
);
outputPaths = (
"$(DERIVED_FILE_DIR)/Pods-Flash Chat iOS13-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
showEnvVarsInLog = 0;
};
/* End PBXShellScriptBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
0B62816F235DEE8100E35CAF /* Sources */ = {
isa = PBXSourcesBuildPhase;
Expand All @@ -180,7 +267,10 @@
0B628179235DEE8100E35CAF /* SceneDelegate.swift in Sources */,
0B62818F235DF01000E35CAF /* LoginViewController.swift in Sources */,
0B628191235DF01B00E35CAF /* ChatViewController.swift in Sources */,
0463FC15286082A000BFB8DA /* Message.swift in Sources */,
0463FC13285FC93700BFB8DA /* Constans.swift in Sources */,
0B62818D235DF00B00E35CAF /* RegisterViewController.swift in Sources */,
0463FC182863258000BFB8DA /* MessageCell.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -232,6 +322,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -292,6 +383,7 @@
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
Expand Down Expand Up @@ -322,16 +414,17 @@
};
0B628188235DEE8400E35CAF /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 66994428E1BB42C78EA77343 /* Pods-Flash Chat iOS13.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 3ECFYJZ64T;
DEVELOPMENT_TEAM = 8U25RXJ494;
INFOPLIST_FILE = "Flash Chat iOS13/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "co.appbrewery.Flash-Chat-iOS13";
PRODUCT_BUNDLE_IDENTIFIER = "co.maonz.Flash-Chat-iOS13";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
Expand All @@ -340,16 +433,17 @@
};
0B628189235DEE8400E35CAF /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 41D365E32DD792F011ED41A7 /* Pods-Flash Chat iOS13.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 3ECFYJZ64T;
DEVELOPMENT_TEAM = 8U25RXJ494;
INFOPLIST_FILE = "Flash Chat iOS13/Info.plist";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = "co.appbrewery.Flash-Chat-iOS13";
PRODUCT_BUNDLE_IDENTIFIER = "co.maonz.Flash-Chat-iOS13";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>Flash Chat iOS13.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>20</integer>
</dict>
</dict>
</dict>
</plist>
10 changes: 10 additions & 0 deletions Flash Chat iOS13.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Binary file not shown.
17 changes: 15 additions & 2 deletions Flash Chat iOS13/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,27 @@
//

import UIKit
import FirebaseCore
import FirebaseAuth
import FirebaseFirestore
import IQKeyboardManagerSwift

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {



var window: UIWindow?

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.

FirebaseApp.configure()
let db = Firestore.firestore()
IQKeyboardManager.shared.enable = true
IQKeyboardManager.shared.enableAutoToolbar = false
IQKeyboardManager.shared.shouldResignOnTouchOutside = true
print(db)


return true
}

Expand Down
29 changes: 29 additions & 0 deletions Flash Chat iOS13/Constans.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
//
// Constans.swift
// Flash Chat iOS13
//
// Created by Mac on 20.06.2022.
// Copyright © 2022 Angela Yu. All rights reserved.
//

struct K {
static let appName = "⚡️FlashChat"
static let cellIdentifier = "ReusableCell"
static let cellNibName = "MessageCell"
static let registerSegue = "RegisterToChat"
static let loginSegue = "LoginToChat"

struct BrandColors {
static let purple = "BrandPurple"
static let lightPurple = "BrandLightPurple"
static let blue = "BrandBlue"
static let lighBlue = "BrandLightBlue"
}

struct FStore {
static let collectionName = "messages"
static let senderField = "sender"
static let bodyField = "body"
static let dateField = "date"
}
}
Loading