Skip to content

Instantly share code, notes, and snippets.

View SwiftUIChatDemoApp.swift
import SwiftUI
import StreamChat
import StreamChatSwiftUI
@main
struct SwiftUIChatDemoApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
let nordeaDarkRed = Color( colorLiteral(red: 0.9058823529, green:
0.01568627451, blue: 0.01568627451, alpha: 1))
View SwiftUIChatDemoApp.swift
import SwiftUI
import StreamChat
import StreamChatSwiftUI
@main
struct SwiftUIChatDemoApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
var body: some Scene {
View SwiftUIChatDemoApp.swift
import SwiftUI
import StreamChat
import StreamChatSwiftUI
@main
struct SwiftUIChatDemoApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
var body: some Scene {
View fontWeightAnimation.swift
//
// AnimateFontWeightView.swift
// 100DaysOfSwiftUI
//
// Created by amos.gyamfi@getstream.io on 11.6.2022.
//
import SwiftUI
struct AnimateFontWeightView: View {
View SwiftChartsGettingStarted.swift
//
// BasicSwiftChart.swift
// SwiftCharts
//
// Created by Amos
//
import Charts
import SwiftUI
struct BasicSwiftChart: View {
View ThemingAppDelegate.swift
import SwiftUI
import StreamChat
import StreamChatSwiftUI
class AppDelegate: NSObject, UIApplicationDelegate {
var streamChat: StreamChat?
var chatClient: ChatClient = {
var config = ChatClientConfig(apiKey: .init("8br4watad788"))
View ThemingBasicsApp.swift
import SwiftUI
import StreamChat
import StreamChatSwiftUI
@main
struct SwiftUIChatDemoApp: App {
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
let nordeaDarkRed = Color(#colorLiteral(red: 0.9058823529, green: 0.01568627451, blue: 0.01568627451, alpha: 1))
var body: some Scene {
View MessagesView.swift
//
// MessagesView.swift
// iMessageClone
//
//
import SwiftUI
struct MessagesView: View {
View NavBarItems.swift
.navigationBarItems(
leading: Button {
print("Pressed edit button")
} label: {
Text("Edit")
},
trailing: Button {
print("Pressed compose button")
} label: {
View HeaderView.swift
//
// HeaderView.swift
// iMessageClone
//
//
import SwiftUI
struct HeaderView: View {