Skip to content

Commit 0aa4f21

Browse files
authored
Merge branch 'master' into master
2 parents 2ebe1fa + 8e298d9 commit 0aa4f21

File tree

16 files changed

+177
-3
lines changed

16 files changed

+177
-3
lines changed

Assets/Chatscreen.pdf

130 KB
Binary file not shown.

Assets/Home Screen.pdf

77.3 KB
Binary file not shown.

Assets/Login.pdf

65.2 KB
Binary file not shown.

Assets/Sign Up.pdf

65.8 KB
Binary file not shown.

Assets/Starter Screen.pdf

126 KB
Binary file not shown.

Chatkit/Chatkit.xcodeproj/project.pbxproj

+20
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
/* Begin PBXBuildFile section */
1010
38D7849B234E61F400D09DC8 /* Alamofire in Frameworks */ = {isa = PBXBuildFile; productRef = 38D7849A234E61F400D09DC8 /* Alamofire */; };
11+
945F6FE9234EFB08002D2D1D /* StarterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 945F6FE8234EFB08002D2D1D /* StarterView.swift */; };
12+
945F701D234F937C002D2D1D /* Rubik-Regular.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 945F7013234F937C002D2D1D /* Rubik-Regular.ttf */; };
13+
945F701F234F937C002D2D1D /* Rubik-Medium.ttf in Resources */ = {isa = PBXBuildFile; fileRef = 945F7015234F937C002D2D1D /* Rubik-Medium.ttf */; };
1114
94E63C7C23389703003BDA62 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94E63C7B23389703003BDA62 /* AppDelegate.swift */; };
1215
94E63C7E23389703003BDA62 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 94E63C7D23389703003BDA62 /* SceneDelegate.swift */; };
1316
94E63C8123389703003BDA62 /* Chatkit.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 94E63C7F23389703003BDA62 /* Chatkit.xcdatamodeld */; };
@@ -18,6 +21,9 @@
1821
/* End PBXBuildFile section */
1922

2023
/* Begin PBXFileReference section */
24+
945F6FE8234EFB08002D2D1D /* StarterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StarterView.swift; sourceTree = "<group>"; };
25+
945F7013234F937C002D2D1D /* Rubik-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Rubik-Regular.ttf"; sourceTree = "<group>"; };
26+
945F7015234F937C002D2D1D /* Rubik-Medium.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Rubik-Medium.ttf"; sourceTree = "<group>"; };
2127
94E63C7823389703003BDA62 /* Chatkit.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Chatkit.app; sourceTree = BUILT_PRODUCTS_DIR; };
2228
94E63C7B23389703003BDA62 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
2329
94E63C7D23389703003BDA62 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
@@ -41,6 +47,15 @@
4147
/* End PBXFrameworksBuildPhase section */
4248

4349
/* Begin PBXGroup section */
50+
945F6FEF234F90C2002D2D1D /* Font */ = {
51+
isa = PBXGroup;
52+
children = (
53+
945F7015234F937C002D2D1D /* Rubik-Medium.ttf */,
54+
945F7013234F937C002D2D1D /* Rubik-Regular.ttf */,
55+
);
56+
path = Font;
57+
sourceTree = "<group>";
58+
};
4459
94E63C6F23389703003BDA62 = {
4560
isa = PBXGroup;
4661
children = (
@@ -60,9 +75,11 @@
6075
94E63C7A23389703003BDA62 /* Chatkit */ = {
6176
isa = PBXGroup;
6277
children = (
78+
945F6FEF234F90C2002D2D1D /* Font */,
6379
94E63C7B23389703003BDA62 /* AppDelegate.swift */,
6480
94E63C7D23389703003BDA62 /* SceneDelegate.swift */,
6581
94E63C8223389703003BDA62 /* ContentView.swift */,
82+
945F6FE8234EFB08002D2D1D /* StarterView.swift */,
6683
94E63C8423389704003BDA62 /* Assets.xcassets */,
6784
94E63C8923389704003BDA62 /* LaunchScreen.storyboard */,
6885
94E63C8C23389704003BDA62 /* Info.plist */,
@@ -144,7 +161,9 @@
144161
isa = PBXResourcesBuildPhase;
145162
buildActionMask = 2147483647;
146163
files = (
164+
945F701D234F937C002D2D1D /* Rubik-Regular.ttf in Resources */,
147165
94E63C8B23389704003BDA62 /* LaunchScreen.storyboard in Resources */,
166+
945F701F234F937C002D2D1D /* Rubik-Medium.ttf in Resources */,
148167
94E63C8823389704003BDA62 /* Preview Assets.xcassets in Resources */,
149168
94E63C8523389704003BDA62 /* Assets.xcassets in Resources */,
150169
);
@@ -158,6 +177,7 @@
158177
buildActionMask = 2147483647;
159178
files = (
160179
94E63C7C23389703003BDA62 /* AppDelegate.swift in Sources */,
180+
945F6FE9234EFB08002D2D1D /* StarterView.swift in Sources */,
161181
94E63C7E23389703003BDA62 /* SceneDelegate.swift in Sources */,
162182
94E63C8323389703003BDA62 /* ContentView.swift in Sources */,
163183
94E63C8123389703003BDA62 /* Chatkit.xcdatamodeld in Sources */,

Chatkit/Chatkit/AppDelegate.swift

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2727

2828
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
2929
// Override point for customization after application launch.
30+
3031
return true
3132
}
3233

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"info" : {
3+
"version" : 1,
4+
"author" : "xcode"
5+
},
6+
"colors" : [
7+
{
8+
"idiom" : "universal",
9+
"color" : {
10+
"color-space" : "srgb",
11+
"components" : {
12+
"red" : "0.145",
13+
"alpha" : "1.000",
14+
"blue" : "1.000",
15+
"green" : "0.404"
16+
}
17+
}
18+
}
19+
]
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"images" : [
3+
{
4+
"idiom" : "universal",
5+
"filename" : "loginLogoImage.png",
6+
"scale" : "1x"
7+
},
8+
{
9+
"idiom" : "universal",
10+
"scale" : "2x"
11+
},
12+
{
13+
"idiom" : "universal",
14+
"scale" : "3x"
15+
}
16+
],
17+
"info" : {
18+
"version" : 1,
19+
"author" : "xcode"
20+
}
21+
}
Loading

Chatkit/Chatkit/Font/Rubik-Medium.ttf

211 KB
Binary file not shown.
215 KB
Binary file not shown.

Chatkit/Chatkit/Info.plist

+5
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,10 @@
5656
<string>UIInterfaceOrientationLandscapeLeft</string>
5757
<string>UIInterfaceOrientationLandscapeRight</string>
5858
</array>
59+
<key>UIAppFonts</key>
60+
<array>
61+
<string>Rubik-Bold.ttf</string>
62+
<string>Rubik-Medium.ttf</string>
63+
</array>
5964
</dict>
6065
</plist>

Chatkit/Chatkit/SceneDelegate.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
3535

3636
// Create the SwiftUI view and set the context as the value for the managedObjectContext environment keyPath.
3737
// Add `@Environment(\.managedObjectContext)` in the views that will need the context.
38-
let contentView = ContentView().environment(\.managedObjectContext, context)
38+
let starterView = StarterView().environment(\.managedObjectContext, context)
3939

4040
// Use a UIHostingController as window root view controller.
4141
if let windowScene = scene as? UIWindowScene {
4242
let window = UIWindow(windowScene: windowScene)
43-
window.rootViewController = UIHostingController(rootView: contentView)
43+
window.rootViewController = UIHostingController(rootView: starterView)
4444
self.window = window
4545
window.makeKeyAndVisible()
4646
}

Chatkit/Chatkit/StarterView.swift

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
//
2+
// StarterView.swift
3+
// Chatkit
4+
//
5+
// Created by Tushar Limaye on 10/10/19.
6+
// Copyright [2019] [SwiftMumbai]
7+
//
8+
// Licensed under the Apache License, Version 2.0 (the "License");
9+
// you may not use this file except in compliance with the License.
10+
// You may obtain a copy of the License at
11+
//
12+
// http://www.apache.org/licenses/LICENSE-2.0
13+
//
14+
// Unless required by applicable law or agreed to in writing, software
15+
// distributed under the License is distributed on an "AS IS" BASIS,
16+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
// See the License for the specific language governing permissions and
18+
// limitations under the License.
19+
20+
import SwiftUI
21+
22+
struct StarterView: View {
23+
let loginLogoImage = UIImage(named: "loginLogoImage")!
24+
var body: some View {
25+
VStack(alignment: .center, spacing: 20){
26+
Image(uiImage:loginLogoImage)
27+
.resizable()
28+
.aspectRatio(contentMode: .fit)
29+
Text("ChatKit")
30+
.font(Font.custom("Rubik-Medium", size: 30))
31+
.foregroundColor(Color("blueColor")).padding()
32+
LoginButton()
33+
.padding(.leading)
34+
.padding(.trailing)
35+
.padding(.top)
36+
SignUpButton()
37+
.padding(.leading)
38+
.padding(.trailing)
39+
.padding(.bottom)
40+
}
41+
}
42+
}
43+
44+
struct LoginButton:View{
45+
var body:some View{
46+
return Button(action: {
47+
// Login Button Action
48+
}) {
49+
Text("Login")
50+
.frame(maxWidth: .infinity)
51+
.font(Font.custom("Rubik-Regular", size: 20))
52+
.padding()
53+
.background(Color.white)
54+
.foregroundColor(Color("blueColor"))
55+
.border(Color("blueColor"),width:2)
56+
.cornerRadius(5)
57+
}
58+
}
59+
}
60+
61+
62+
struct SignUpButton:View{
63+
var body:some View{
64+
return Button(action: {
65+
// SignUp Button Action
66+
}) {
67+
Text("Sign Up")
68+
.frame(maxWidth: .infinity)
69+
.font(Font.custom("Rubik-Regular", size: 20))
70+
.padding()
71+
.background(Color("blueColor"))
72+
.foregroundColor(.white)
73+
.cornerRadius(5)
74+
}
75+
}
76+
}
77+
78+
79+
80+
struct StarterView_Previews: PreviewProvider {
81+
static var previews: some View {
82+
StarterView()
83+
}
84+
}

README.md

+24-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
# chatkit
1+
# Chatkit
2+
3+
[![codebeat badge](https://codebeat.co/badges/50a7fc27-9c9b-422e-9494-5642946db8ab)](https://codebeat.co/projects/g.yxqyang.asia-swiftmumbai-chatkit-master)
4+
5+
A Community Based Open Software Project
6+
7+
We are in the process of developing a Messaging application for community level communications.
8+
9+
10+
Checkout Project status: https://github.com/swiftmumbai/chatkit/projects/1
11+
12+
Messaging App contents:
13+
- Mainpage
14+
- Login page
15+
- Signup page
16+
- Chat tray
17+
- Individual chats screen
18+
19+
Authentication on local side (initially) using the protocols.
20+
Server side handling,rendering and fetching of data using Firebase(initially), or some MYSQL,SQLite or PostgreSQL
21+
22+
Swift Package Manager to be used.
23+
24+
Development of SDK and then available to all the commmunity members.

0 commit comments

Comments
 (0)