Skip to content

xshareview/iOSWidgetSample

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

iOSWidgetSample

Summary

Project 'iOSWidgetSample' is a iOS14 widget sample, show news list in a widget. The layout is different in different size widget.

Preview

1601000598032.png

Install

  1. Make sure you've installed CocoaPods.
  2. Clone the project source code to your computer.
  3. Open a terminal and enter 'iOSWidgetSample/iOSWidgetSample' directory.
  4. Use 'pod install' to generate 'iOSWidgetSample.xcworkspace'
  5. Start Xcode, open 'iOSWidgetSample.xcworkspace'.

Notice

The news list is caught from alapi free API, It has a limit of 100 times per day.


简介

'iOSWidgetSample' 是一个基于iOS14的小窗体(Widget)演示程序,可以在小窗体中显示一个新闻列表。不同尺寸的Widget,界面显示不同的布局。

预览图

1601000598032.png

安装方法

  1. 首先确保你的电脑上已经安装了CocoaPods.
  2. 将项目的源码克隆到你的电脑
  3. 打开一个终端,进入'iOSWidgetSample/iOSWidgetSample'目录.
  4. 执行 'pod install' 命令生成 'iOSWidgetSample.xcworkspace'
  5. 启动Xcode, 打开 'iOSWidgetSample.xcworkspace'.

注意

新闻列表的数据是从alapi的免费API获取的,每天可以调用100次。

About

A iOS14 widget sample, show news list in a widget

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 98.0%
  • Ruby 2.0%