This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| extension StringProtocol { | |
| /// str[NSRange(location:0, length: 9)] | |
| subscript(_ range: NSRange) -> SubSequence { | |
| guard let stringRange = Range<String.Index>(range, in: self) else { | |
| fatalError("String index is out of range") | |
| } | |
| return self[stringRange] | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // StreamLogoLaunch.swift | |
| // StreamiOSChatSDKPrototyping | |
| // | |
| // Created by amos.gyamfi on 14.10.2021. | |
| // | |
| import SwiftUI | |
| struct StreamLogoLaunch: View { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Foundation | |
| import SwiftUI | |
| extension EnvironmentValues { | |
| public func value<T>(_: T.Type = T.self, forKey key: String) -> T? { | |
| guard let value = first(where: { name($0, equals: key) }) else { | |
| print("No EnvironmentValue with key '\(key)' found.") | |
| return nil | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/zsh | |
| makeXCFramework () { | |
| BASEDIR=$(pwd) | |
| echo "Script location: ${BASEDIR}" | |
| LIBNAME=$(basename $BASEDIR) | |
| echo "lib is: $LIBNAME" | |
| cd Frameworks |