All Projects → hemantasapkota → SwiftListView

hemantasapkota / SwiftListView

Licence: MIT license
Instagram style - Collection of simple & neutral list views for Swift

Programming Languages

swift
15916 projects
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to SwiftListView

FlutterNote
Easy to learn Flutter(Flutter 即学即用,Flutter 速成必备)
Stars: ✭ 22 (+29.41%)
Mutual labels:  widget, listview
nl.fokkezb.button
Bootstrap Button widget for Appcelerator (Titanium)
Stars: ✭ 72 (+323.53%)
Mutual labels:  widget, button-widget
Paging library
A Flutter package for paginating a list view
Stars: ✭ 35 (+105.88%)
Mutual labels:  widget, listview
vercel-toast
💬 Framework-agnostic vercel design's toast component (≈1KB Gzipped)
Stars: ✭ 67 (+294.12%)
Mutual labels:  widget
here-map-widget-for-jupyter
Use HERE Maps API for JavaScript in your Jupyter Notebook.
Stars: ✭ 29 (+70.59%)
Mutual labels:  widget
MiniMusicView
A simple custom music play widget
Stars: ✭ 31 (+82.35%)
Mutual labels:  widget
titik
A cross platform minimalistic text user interface
Stars: ✭ 112 (+558.82%)
Mutual labels:  widget
flutter easyloading
✨A clean and lightweight loading/toast widget for Flutter, easy to use without context, support iOS、Android and Web
Stars: ✭ 1,021 (+5905.88%)
Mutual labels:  widget
Covid-19 Ampel
Covid-19_Ampel | Zeigt neben der 7-Tage-Inzidenz weitere Infos zu einer Region.
Stars: ✭ 33 (+94.12%)
Mutual labels:  widget
cryptocoins-desklet-cinnamon
Cryptocurrency Ticker (Desklet) for Cinnamon Desktop that displays the current price for thousands of cryptocurrencies, and their daily percent changes.
Stars: ✭ 18 (+5.88%)
Mutual labels:  widget
nl.fokkezb.form
[UNMAINTAINED] Alloy TableView Form Widget
Stars: ✭ 43 (+152.94%)
Mutual labels:  widget
AndroidUiKit
uikit widget common baseview Adapter faster develop
Stars: ✭ 48 (+182.35%)
Mutual labels:  widget
flutter trianglify
Flutter library to generate beautiful triangle art views for android and ios.
Stars: ✭ 31 (+82.35%)
Mutual labels:  widget
netlify-cms-widget-starter
A boilerplate for creating Netlify CMS widgets.
Stars: ✭ 74 (+335.29%)
Mutual labels:  widget
LiquidEqualizerWidget
Modern 15-band equalizer for C++/Qt
Stars: ✭ 26 (+52.94%)
Mutual labels:  widget
flutter code input
Flutter Code Input
Stars: ✭ 69 (+305.88%)
Mutual labels:  widget
proca
Widget to transform your website into a cutting-edge campaign in 10 min. multi-lingual, privacy first.
Stars: ✭ 29 (+70.59%)
Mutual labels:  widget
ObjectListView
ObjectListView is a .NET ListView wired on caffeine, guarana and steroids. More calmly, it is a C# wrapper around a .NET ListView, which makes the ListView much easier to use and teaches it lots of neat new tricks.
Stars: ✭ 72 (+323.53%)
Mutual labels:  listview
kde-plasmoid-betterinlineclock
Your usual clock widget, just way better and on a single line!
Stars: ✭ 18 (+5.88%)
Mutual labels:  widget
SvgViewerWidgetTWX
Thingworx widget for runtime display and manipulation of a SVG
Stars: ✭ 13 (-23.53%)
Mutual labels:  widget

SwiftListView

Collection of simple & neutral list views for IOS written in Swift.

Features

  • Animated
  • Set static items or define a data loader
  • Works on both iPhone and iPad
  • Supports orientation change
  • Helper button ( GroupFilterButton )

Installation

  • Add github "hemantasapkota/SwiftListView" to your cartfile
  • Execute carthage update

Note: SwiftListView includes other libraries as dependencies. Carthage will pull and build them. You must include all the dependencies to your project.

List Views

BasicListView

Screenshot

Usage - Static List

var highlighted = "Himalayan Cat"

let listView = BasicListView(viewTitle: "Cat Breeds", highlighted: highlighted)
listView.Items = ["American Bobtail", "American Curl", "American Shorthair", "Himalayan Cat"]

listView.onSelection = { selected in  

  // Do something with the selected item. Ex: Update UI
  self.basicListViewBtn.titleLabel?.text = selected

  self.highlighted = selected
}

listView.show()

Usage - Dynamic List

let listView = BasicListView(viewTitle: "", highlighted: "")

listView.ShowProgress = true

listView.ItemsLoader = { (completion) in
    // Load the data asynchronously and call the completion block with the returned array
    // Mock example
    GCDTimer.delay(0.8, block: {
        listView.ShowProgress = false
        completion!(["Dog Breed", "Labrador Retriever", "German Shepherd"))
    })
}

listView.show()

Buttons

GroupFilterButton

A simple custom button that pairs well with the list views.

Example:

        var selectedCat = ""
        
        showCatBreed = GroupFilterButton()
        showCatBreed.SelectedText = "Choose Cat Breed"
        showCatBreed.onSelection = { selected in
            let listView = BasicListView(viewTitle: "Cat Breeds", highlighted: selectedCat)
            
            listView.Items = ["American Bobtail", "American Curl", "American Shorthair", "Himalayan Cat"]
            listView.onSelection = { selected in
                self.showCatBreed.SelectedText = selected
                selectedCat = selected
            }
            
            listView.show()
            
        }

GroupFilterButton comes with default foreground and background colors, which can be customized.

Change Background Color

showCatBreed.backgroundColor = UIColor()

Change Border Color

showCatBreed.layer.borderColor = UIColor(....).cgColor

Change Text Color

showCatBreed.label.textColor = UIColor(.....)

Author

License

The MIT License (MIT)

Copyright (c) 2016 Hemanta Sapkota

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].