}
fileprivate class AiFunctionHeadView: BaseView {
+ let connetedView = UIImageView(image: UIImage(named: "device_conneted_bg"))
let icon = CurrentDeviceView()
let bottonView = UIView()
let tipsIcon = UIImageView()
didSet{
if enable {
self.alpha = 1
+ connetedView.isHidden = false
}
else{
self.alpha = 0.5
+ connetedView.isHidden = true
}
}
}
override func setupViews() {
addSubviews([icon,bottonView])
+ icon.addSubviews([connetedView])
bottonView.addSubviews([titleLabel,valueLabel,tipsIcon,arrowIcon])
// backgroundColor = .blue
icon.do { v in
// v.backgroundColor = .lightGray
}
+ connetedView.do { v in
+ v.isHidden = true
+ }
bottonView.do { v in
v.backgroundColor = .color(.cellBg)
v.yc.setCornerRadius(8)
make.right.equalToSuperview().inset(16)
make.centerY.equalToSuperview()
}
-
+ connetedView.snp.makeConstraints { make in
+ make.edges.equalToSuperview()
+ }
}
}
fileprivate class AiFunctionView: BaseView {
v.backgroundColor = .color(.separateLine)
}
selfLabel.do { v in
- v.label.text = "你:"
+ v.label.text = "你" + ":"
v.label.textColor = .hexString("#B9B9B9")
v.dot.backgroundColor = v.label.textColor
// v.backgroundColor = .red
}
otherLabel.do { v in
- v.label.text = "对方:"
+ v.label.text = "对方" + ":"
v.label.textColor = .color(.theme)
v.dot.backgroundColor = v.label.textColor
// v.backgroundColor = .red
model.name = fileName
model.path = wavPath
model.duration = YLToos.getDuration(model.path)
- model.origin = "你:".l10n + "\n" + selfTextView.text + "\n\n" + "对方:".l10n + "\n" + otherTextView.text
+ model.origin = "你".l10n + ":" + "\n" + selfTextView.text + "\n\n" + "对方".l10n + ":" + "\n" + otherTextView.text
model.translate = ""
App.shared.popPage(animated: false)
App.shared.goToPage(RecordDetailVC(record: model))
v.backgroundColor = .color(.separateLine)
}
selfLabel.do { v in
- v.label.text = "你:"
+ v.label.text = "你" + ":"
v.label.textColor = .hexString("#B9B9B9")
v.dot.backgroundColor = v.label.textColor
// v.backgroundColor = .red
}
otherLabel.do { v in
- v.label.text = "对方:"
+ v.label.text = "对方" + ":"
v.label.textColor = .color(.theme)
v.dot.backgroundColor = v.label.textColor
// v.backgroundColor = .red
model.name = fileName
model.path = wavPath
model.duration = YLToos.getDuration(model.path)
- model.origin = "你:".l10n + "\n" + selfTextView.text + "\n\n" + "对方:".l10n + "\n" + otherTextView.text
+ model.origin = "你:".l10n + "\n" + selfTextView.text + "\n\n" + "对方".l10n + ":" + "\n" + otherTextView.text
model.translate = ""
App.shared.popPage(animated: false)
App.shared.goToPage(RecordDetailVC(record: model))
v.contentTop = top
v.show()
v.hidenCallback = {
- cell.bgView.backgroundColor = .white
+ cell.bgView.backgroundColor = .color(.cellBg)
}
v.shareCallback = {
App.shared.goToPage(RecordShareVC(cloudList: [model]))
v.contentTop = top
v.show()
v.hidenCallback = {
- cell.bgView.backgroundColor = .white
+ cell.bgView.backgroundColor = .color(.cellBg)
}
v.shareCallback = {
App.shared.goToPage(RecordShareVC(localList: [model]))
}
}
func deleteAction(_ model:RecordDetailModel){
- CustomAlert.showWith(title: "您要删除这条录音吗?".l10n, messgage: "删除后,此记录将无法恢复。".l10n, cancelCallback: {}) {[weak self] in
+ CustomAlert.showWith(title: "您要删除这条录音吗?".l10n, messgage: "删除后,此记录将无法恢复".l10n, cancelCallback: {}) {[weak self] in
guard let self = self else{return}
list.removeAll(where: {$0 === model})
RecordCache.shared.remove(model)
case .chinese2english:
return "- 情景示例 -\n张张戴一只耳机讲中文,双方耳机播放英文翻译 Lucy戴一只耳机讲英文,双方耳机播报中文翻译".l10n
case .tongchuan:
- return "- æ\83\85æ\99¯ç¤ºä¾\8b -\nå¼ å¼ é\9d è¿\91æ\89\8bæ\9cºè®²ä¸æ\96\87ï¼\8cå°\8få¾\90ç\9c¼é\95\9cæ\92æ\94¾è\8b±è¯".l10n
+ return "- æ\83\85æ\99¯ç¤ºä¾\8b -\nå°\8få¼ å¯¹ç\9d\80æ\89\8bæ\9cºè®²è\8b±è¯ï¼\8cå°\8få¾\90ç\9c¼é\95\9c䏿\92æ\94¾ä¸æ\96\87".l10n
}
}
}
"已连接" : "",
"未连接" : "",
"添加新设备":"",
+ "搜索":"",
"现场录音" : "",
"随时随地,一键开录" : "",
"对话模式使用介绍" : "",
"中英互译模式使用介绍" : "",
"一方手持手机,一方戴上耳机,对手机发言时,耳机播放译文,对耳机发言时,手机播放译文" : "",
+ "一方手持手机,一方戴上眼镜,对手机发言时,眼镜播放译文,对眼镜发言时,手机播放译文":"",
"手机靠近音源,两人各佩戴一只耳机,双方耳机中播放目标语言" : "",
"手机靠近音源收音,佩戴耳机收听译文" : "",
+ "手机靠近音源收音,佩戴眼镜收听译文":"",
"- 情景示例 -\n张张靠近手机讲中文,对方耳机播放英语" : "",
"- 情景示例 -\n张张靠近手机讲中文,对方眼镜播放英语":"",
"- 情景示例 -\n张张戴一只耳机讲中文,双方耳机播放英文翻译 Lucy戴一只耳机讲英文,双方耳机播报中文翻译" : "",
"- 情景示例 -\nLisa对着手机讲英语,小徐耳机中播放中文" : "",
+ "- 情景示例 -\n小张对着手机讲英语,小徐眼镜中播放中文":"",
"开始体验" : "",
"下次不再提示":"",
"当前正在录音,确定放弃当前录音吗":"",
"斯瓦希里文":"",
"土耳其文":"",
-
+ "暂停":"",
"保存录音" : "",
"原文" : "",
"译文" : "",
--- /dev/null
+{
+ "images" : [
+ {
+ "idiom" : "universal",
+ "scale" : "1x"
+ },
+ {
+ "filename" : "Slice 88@2x.png",
+ "idiom" : "universal",
+ "scale" : "2x"
+ },
+ {
+ "filename" : "Slice 88@3x.png",
+ "idiom" : "universal",
+ "scale" : "3x"
+ }
+ ],
+ "info" : {
+ "author" : "xcode",
+ "version" : 1
+ }
+}