• Stars
    star
    140
  • Rank 261,424 (Top 6 %)
  • Language
    Swift
  • License
    MIT License
  • Created about 9 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

FloatingActionSheetController is a cool design ActionSheetController library written in Swift2.

FloationgActionSheetController

Platform Language CocoaPods Shield Carthage compatible License

FloatingActionSheetController is a cool design ActionSheetController library written in Swift2.

Overview

Requirements

  • Xcode 8+
  • Swift3
  • iOS 8.0+

Installation

CocoaPods

# Podfile
use_frameworks!
target 'YOUR_TARGET_NAME' do
  pod "FloatingActionSheetController"
end

Carthage

# Cartfile
github "ra1028/FloatingActionSheetController"

Usage

Import FloationgActionSheetController at first.

import FloatingActionSheetController

example

let action1 = FloatingAction(title: "title") { action in
    // Do something.
}
let action2 = FloatingAction(title: "title") { action in
    // Do something.
}
let action3 = FloatingAction(title: "title", handleImmediately: true) { action in
    // Do something.
    // If set to 'true' the handleImmediately, handler will be execute soon when Action was select.
}
let group1 = FloatingActionGroup(action: action1)
let group2 = FloatingActionGroup(action: action2, action3)
FloatingActionSheetController(actionGroup: group1, group2)
    .present(in: self)

We have prepared a rich initializer to each Class. Please refer to the demo app and source code.

animations

Custom animation styles. Please check the overview or demo app for animation details

public enum AnimationStyle {
    case slideUp
    case slideDown
    case slideLeft
    case slideRight
    case pop
}

How to use

FloatingActionSheetController(actionGroup: group, animationStyle: .slideLeft)
let actionSheet = FloatingActionSheetController(actionGroup: group)
actionSheet.animationStyle = .slideLeft

appearance customization

let actionSheet = FloatingActionSheetController(actionGroup: group1)
// Color of action sheet
actionSheet.itemTintColor = .white
// Color of title texts
actionSheet.textColor = .black
// Font of title texts
actionSheet.font = .boldSystemFont(ofSize: 15)
// background dimming color
actionSheet.dimmingColor = UIColor(white: 1, alpha: 0.7)

If you wants to customize FloatingAction individually.

var action = FloatingAction(title: "title") { action in
    // Do something.
}
action.tintColor = .whiteColor()
action.textColor = .blackColor()
action.font = .boldSystemFont(ofSize: 15)

License

FloatingActionSheetController is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

DifferenceKit

๐Ÿ’ป A fast and flexible O(n) difference algorithm framework for Swift collection.
Swift
3,421
star
2

RACollectionViewReorderableTripletLayout

The custom collectionView layout that can perform reordering of cells by dragging it.
Objective-C
1,481
star
3

Former

Former is a fully customizable Swift library for easy creating UITableView based form.
Swift
1,307
star
4

Carbon

๐Ÿšด A declarative library for building component-based user interfaces in UITableView and UICollectionView.
Swift
1,291
star
5

RAReorderableLayout

A UICollectionView layout whitch can move item with drag and drop.
Swift
867
star
6

DiffableDataSources

๐Ÿ’พ A library for backporting UITableView/UICollectionViewDiffableDataSource.
Swift
836
star
7

swiftui-hooks

๐Ÿช A SwiftUI implementation of React Hooks. Enhances reusability of stateful logic and gives state and lifecycle to function view.
Swift
479
star
8

SwiftUI-Combine

This is an example project of SwiftUI and Combine using GitHub API.
Swift
452
star
9

VueFlux

โ™ป๏ธ Unidirectional State Management Architecture for Swift - Inspired by Vuex and Flux
Swift
331
star
10

PathDynamicModal

A modal view using UIDynamicAnimator, like the Path for iOS.
Swift
286
star
11

swiftui-atom-properties

โš›๏ธ Atomic approach state management and dependency injection for SwiftUI
Swift
232
star
12

DelegateProxy

Proxy for receive delegate events more practically
Swift
129
star
13

RASlideInViewController

RASlideInViewController has an transition effect expressing the depth, and you can dismiss it by draging
Objective-C
127
star
14

Alembic

โš—๏ธ Functional JSON Parser - Linux Ready ๐Ÿง
Swift
116
star
15

swift-mod

A tool for Swift code modification intermediating between code generation and formatting.
Swift
101
star
16

SwiftUI-Flux

๐Ÿš€ This is a tiny experimental application using SwiftUI with Flux architecture.
Swift
54
star
17

monkey-lang-swift

The Monkey Programming Language written in Swift -- Writing An Interpreter In Go
Swift
17
star
18

LiveStreamingApp

A sample app repository that broadcasting and player of HLS for iOS.
Swift
16
star
19

KenBurnsSlideshowView

Slideshow with Ken Burns effect for iOS.
Swift
11
star
20

VueFluxExample-GitHub

VueFlux VueFluxReactive example project
Swift
8
star
21

OwnKit

My own utility toolkit for ios
Swift
7
star
22

ra1028

2
star
23

Dribbble_client_sample

Swift
1
star