Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持识别动态中的链接并用Safari打开 #118

Closed
Tracked by #98
WindowsMEMZ opened this issue Feb 9, 2024 · 2 comments
Closed
Tracked by #98

支持识别动态中的链接并用Safari打开 #118

WindowsMEMZ opened this issue Feb 9, 2024 · 2 comments
Labels
改进 请求或更新新功能

Comments

@WindowsMEMZ
Copy link
Member

No description provided.

@WindowsMEMZ WindowsMEMZ mentioned this issue Feb 9, 2024
75 tasks
@Linecom-lik Linecom-lik added the 改进 请求或更新新功能 label Feb 11, 2024
@Lightning-Lion
Copy link
Collaborator

正在做,总体思路:

  1. 识别URL,变成AttributedString,以便在Text中高亮链接。
let markdownLink = try! AttributedString(markdown: "你好呀[Duck Duck Go](https://duckduckgo.com)")
Text(markdownLink)
    .tint(.red)
    .foregroundColor(.green)
  1. 手表端需要多一步处理:拦截点击事件,使用暗礁浏览器打开

@WindowsMEMZ
Copy link
Member Author

Closed by #239

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
改进 请求或更新新功能
Projects
Status: 🎁 已完成的
Development

No branches or pull requests

3 participants