Feed Parser

The Feed component is build to parse feed or rss format. The implementation of Feed is straightforward. You can implement it manually or using Cocoapod package manager.

Name Version Content
MGFeedKit 0.1.6 UINavigationBar - UISearchBar - UITableView - UIViewController

Installation

To install this component you can use Cocoapods or drag and drop the folder of the component into your project manually.

Cocoapods

MGFeedKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'MGFeedKit', :git => 'https://haraldbregu:4a4d1162147e80549f22cafb59060bdf59c4934a@github.com/HaraldBregu/MGFeedKit.git'

Customization

To customize content of Feed component you have to edit FeedComponent.swift file. By updating and changing this file you will have different items in the list. Follow the steps below.

Assets

To change the items of content, edit this code of lines:

return FeedAsset(
  string: FeedString(
      title: "",
      navigationTitle: "",
      searchBarPlaceholder: "Search"),
  font: FeedFont(
      tableViewCellTitle: MGTemplate.font.title3,
      tableViewCellSubtitle: MGTemplate.font.caption1,
      tableViewCellDescription: MGTemplate.font.body),
  image: FeedImage(),
  color: FeedColor(
      navigationBar: MGTemplate.color.navigationBar,
      navigationBarContent: MGTemplate.color.text.primary,
      refreshControl: MGTemplate.color.text.primary,
      searchBar: MGTemplate.color.searchBar,
      searchBarContent: MGTemplate.color.text.primary,
      toolBar: MGTemplate.color.toolBar,
      toolBarContent: MGTemplate.color.text.primary,
      view: MGTemplate.color.view,
      viewContent: MGTemplate.color.text.primary,
      tableView: MGTemplate.color.tableView,
      tableViewContent: MGTemplate.color.text.primary,
      tableViewSeparator: MGTemplate.color.tableViewSeparator,
      tableViewCell: MGTemplate.color.tableViewCell,
      tableViewCellContent: MGTemplate.color.text.primary,
      collectionView: MGTemplate.color.collectionView,
      collectionViewContent: MGTemplate.color.text.primary,
      tableViewCellTitle: MGTemplate.color.text.primary,
      tableViewCellSubtitle: MGTemplate.color.text.secondary,
      tableViewCellDescription: MGTemplate.color.text.primary),
  data: FeedData(
      url: "",
      enableAds: true,
      adsUnitId: "ca-app-pub-3940256099942544/2934735716",
      keyboardAppearance: .dark,
      activityIndicatorStyle: .white))