swiftui命令
Button( action: { isPerformingTask = true api = apilist.filter(){$0 != api}.randomElement()! Task { await loadData() isPerformingTask = false } }, label: { Text("换一批").opacity(isPerformingTask ? 0 : 1) } ) .disabled(isPerformingTask)
.contextMenu { Button { // Add this item to a list of favorites. } label: { Label("Add to Favorites", systemImage: "heart") } Button { // Open Maps and center it on this item. } label: { Label("Show in Maps", systemImage: "mappin") } }
2022-07-22
xianshi(newsx: 新闻数据())
.environment(\.managedObjectContext,
persistenceController.container.viewContext)
2022-07-22
for lie in labelnews.绿色列表 { if let range = text.range(of: lie) { text[range].backgroundColor = .cyan text[range].foregroundColor = .red text[range].font = .footnote // text[range].font = UIFont.boldSystemFont(ofSize: 15) text.characters.replaceSubrange(range, with: lie+"(企业的根本)") } }

浙公网安备 33010602011771号