项目
在 GitHub 查看
alfianlosari/NewsAppSwiftUI
关于
A Full News App based on the latest SwiftUI 3 API and Swift 5.5 that fetches latest news from newsapi.org. Multiplatform support targeting iOS 15, macOS 12, watchOS 8, tvOS 15.
网站与应用开发可以做什么
- Fetch news based on categories: general, business, science, technology, health, entertainment, sports
- Bookmark articles so it can be persisted even when the app restarts.
- Share article using native iOS share sheet UIActivityController.
- Read article inside a Safari Webview in modal sheet presentation.
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文SwiftUI 3.0 News App for iOS 15, iPadOS 15, macOS 12, watchOS 8, tvOS 15

A Full News App based on the latest SwiftUI 3 that fetches latest news from newsapi.org targeting iOS 15, macOS 12, watchOS 8, and tvOS 15.
Features
The app has several main features:
- Fetch news based on categories: general, business, science, technology, health, entertainment, sports
- Bookmark articles so it can be persisted even when the app restarts.
- Share article using native iOS share sheet UIActivityController.
- Read article inside a Safari Webview in modal sheet presentation.
- Search news based on the search query you type on the search bar.
- Recent search history list.
- Suggestion search list.
- Watch Connectivity and Watch Face Complication support for watchOS.
- Intent Configurable Widgets - iOS, iPadOS, macOS - S, M, L, XL Family Sizes
SwiftUI 3 API:
The SwiftUI 3 APIs used to build the app:
- Async Await, Structured Concurrency, and Actors.
- Task Lifecycle View Modifer.
- AsyncImage.
- Refreshable and SwipeAction on List.
- Actor to isolate disk persistence.
- Crafting Search Experience using Swift Searchable modifier. synchronous local search and async remote search, as well as providing search suggestions.
Getting Started
- Register for an API Key at https://newsapi.org
- Paste the key inside NewsAPI.swift file.
- Download Xcode 13 from App Store.
Installation
- Build and run the project using iOS 15, iPadOS 15, watchOS 8, tvOS 15 physical devices or simulator from Xcode 13
- For building macOS 12 target you need to use Xcode 13 Beta 5 or upcoming Xcode 13.X release and macOS 12 Beta 7.
Tutorial
This project is based on the YouTube tutorial series that you can watch from these links:
- Build an iOS News App with SwiftUI 3 & NewsAPI | Full Course YouTube.
- Add iPadOS UX Adaptivity to an iOS News App with SwiftUI 3 | Full Course YouTube.
- Build a macOS News App with SwiftUI 3 & NewsAPI | Full Course YouTube.
- Build a watchOS News App with SwiftUI 3 & NewsAPI | Full Course YouTube.
- Build a tvOS News App with SwiftUI 3 & NewsAPI | Full Course YouTube.
- Data Caching with SwiftUI Task YouTube.
- Adding Infinity Scroll Pagination in SwiftUI with Task Modifier YouTube.
- 8 Add Widget to Home Screen YouTube.
探索相关项目
加载中…