Swift的Array的常见扩展
参考: https://github.com/lixiang1994/AttributedString https://github.com/lixiang1994/AttributedString/blob/master/Sources/Extension/ArrayExtension.swift 前言 项目中使用Swift的Array场景很多,其中数据转换、过滤、...
参考: https://github.com/lixiang1994/AttributedString https://github.com/lixiang1994/AttributedString/blob/master/Sources/Extension/ArrayExtension.swift 前言 项目中使用Swift的Array场景很多,其中数据转换、过滤、...
Operator - 操作符 如何选择操作符? 操作符(Operators) |>: 拼接操作符 调用方式:let s2 = s1 |> xxx, 等价于clouse = xxx; let s2 = clouse(s1); 源码如下: precedencegroup PipeRight { associativity: left higherThan: ...
前言 在使用curl的方式使用一台主Jenkins调用子Jenkins时,子Jenkins构建失败不知道,特需要在构建失败时触发消息通知 解决方案: 创建一个新的项目,该项目增加一个构建触发器,关注需要构建的项目 一、创建主项目 MyMainTest 二、创建通知项目 AlertFail 2.1 创建项目 2.2 设置构建触发器,配置关注的主项目 2.3 添加Build St...
参考: https://hubo.dev/2020-05-11-source-code-walkthrough-of-telegram-ios-part-2 Telegram-iOS 源码分析:第二部分(SSignalKit) RxSwift核心 与Rxswif类似,主要包含的内容:Signal,Subscriber,Disposable Disposable Dispo...
参考: https://copyprogramming.com/howto/value-of-type-string-has-no-member-stringbytrimmingcharactersinset 本文demo的代码 https://github.com/h42330789/StudyIM/blob/feature/ItemListController/Study...
项目: https://github.com/TelegramMessenger/Telegram-iOS Telegram-tag:release-9.6.5 电脑:芯片:M1,系统:MacOS Sonoma 14.0,XCode:15.0.1 本demo项目:https://github.com/h42330789/StudyIM 本demo分支:origin/feature/Item...
前言 最近在研究Telegram代码,Telegram的代码是使用Bazel管理的,但是平常的项目都是使用Pod管理,于是将Bazel转换为pod依赖,过程中遇到很多问题,一一记录 问题一:项目库依赖项目写法 1.1 本地项目依赖本地项目,使用s.dependency "xxx"的语法 demo如下:本地项目LibA依赖本地项目LibB Pod::Spec.new do |s| ...
Telegram: 仓库:https://github.com/TelegramMessenger/Telegram-iOS tag: release-10.1 主要基类及协议:ItemListNodeEntry、ListViewItem+ItemListItem、ItemListRevealOptionsItemNode+ListViewItemNode 主要学习源码文件:ChatLis...
Telegram: 仓库:https://github.com/TelegramMessenger/Telegram-iOS tag: release-10.1 主要基类及协议:ListView、ListViewInsertItem、ListViewItem、ListViewItemNode 主要学习源码文件:CallListViewTransition.swift、CallListCon...
项目地址:https://github.com/ibireme/YYWebImage