All Projects → szlsay → STKitSwift

szlsay / STKitSwift

Licence: MIT license
STKitSwift is a collection of useful classes and categories to develop Apps faster.

Programming Languages

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

Projects that are alternatives of or similar to STKitSwift

ARMultiuser
this demo use arkit 2.0, realize multiplayer play together! The project refers to the official demo!
Stars: ✭ 30 (-46.43%)
Mutual labels:  ios12
Windows11
💻 Windows 11 in SwiftUI.
Stars: ✭ 177 (+216.07%)
Mutual labels:  swift5
DailyFeed
iOS client for newsapi.org
Stars: ✭ 128 (+128.57%)
Mutual labels:  swift5
skillbox
Выполненные и принятые домашние задания, а также другие материалы, которые могут помочь в обучении
Stars: ✭ 32 (-42.86%)
Mutual labels:  swift5
SwiftUIDemo
A demo app showing you how to build a table view and navigation interface with SwiftUI
Stars: ✭ 26 (-53.57%)
Mutual labels:  swift5
swift-starter-kit
Swift Starter Kit with Firebase & Facebook Login Onboarding
Stars: ✭ 105 (+87.5%)
Mutual labels:  swift5
createml-playgrounds
Create ML playgrounds for building machine learning models. For developers and data scientists.
Stars: ✭ 82 (+46.43%)
Mutual labels:  ios12
Pulse
❤️ A heart rate camera pulse detector written in Swift.
Stars: ✭ 53 (-5.36%)
Mutual labels:  swift5
wwdc2018
You read my developer triceraptus migration notes from dub dub dc 2018
Stars: ✭ 48 (-14.29%)
Mutual labels:  ios12
GPhotos
A wrapper around the Google Photos API.
Stars: ✭ 21 (-62.5%)
Mutual labels:  swift5
AutoPassword-iOS12-Demo
iOS12 - Password AutoFill, Automatic Strong Password, and Security Code AutoFill - https://developerinsider.co/ios12-password-autofill-automatic-strong-password-and-security-code-autofill/
Stars: ✭ 20 (-64.29%)
Mutual labels:  ios12
Match3Kit
Library for simple Match3 games.
Stars: ✭ 38 (-32.14%)
Mutual labels:  swift5
OKKLineMin
OKKLineMin kline for min for learning for iPhone (support Swift5 & the latest Swift & iPhone & iOS 16)(min K线图 用于学习了解)
Stars: ✭ 23 (-58.93%)
Mutual labels:  swift5
Table
CLI tables in Swift
Stars: ✭ 53 (-5.36%)
Mutual labels:  swift5
IGListKit-AsyncDisplayKit-Example
IGListKit be used with AsyncDisplayKit in Swift
Stars: ✭ 34 (-39.29%)
Mutual labels:  swift5
BadgeControl
Badge view with controller written in Swift 5.0
Stars: ✭ 53 (-5.36%)
Mutual labels:  swift5
iOSUtilitiesSource
IOS Utilities Library for Swift
Stars: ✭ 46 (-17.86%)
Mutual labels:  swift5
JewelCase
This is the source code for JewelCase, a sample app demonstrating how to use SwiftUI and Firebase together. This slide deck discusses the architecture of the app: https://www.slideshare.net/peterfriese/building-swiftui-apps-with-firebase
Stars: ✭ 42 (-25%)
Mutual labels:  swift5
AnyImageKit
A toolbox for pick/edit/capture photo or video. Written in Swift.
Stars: ✭ 580 (+935.71%)
Mutual labels:  swift5
PagedLists
Paginated UITableView and UICollectionViews for iOS.
Stars: ✭ 69 (+23.21%)
Mutual labels:  swift5

STKitSwift

STKitSwift Banner

Platform Version Carthage compatible Language License

STKitSwift is a collection of useful classes, structs and extensions to develop Apps faster.

Installing and Usage

    platform :ios, '10.0'
    xcodeproj 'Project.xcodeproj'
    use_frameworks!
    pod 'STKitSwift'
    

Effect Picture

Changelog

1.1

名称 功能描述 状态
STAlertView UIAlertController在alert风格下的封装 新增
STGradientButton 支持渐变色功能的按钮 新增
STGradientView IB支持渐变色、阴影功能的视图 新增
STHUD 弱提示框 新增
STMoveButton 可移动按钮 新增
STPhoneTextField 指定文本显示样式与文本正则的手机号输入框 新增
STProgressView 支持渐变色功能的进度框 新增
STSegmentedControl 根据内容偏移的分段选择器 新增

1.2

名称 功能描述 状态
STTimerButton 支持计时与倒计时的按钮 新增
STAreaPickerView 省市区选择器 新增
STDatePickerView 年月日选择器 新增

1.3

名称 功能描述 状态
STHUD 支持图片与文本提示 更新

STAlertView

Installing

pod 'STKitSwift/STAlertView'

Example

let title = "Flutter 与 iOS 原生 WebView 对比"
STAlertView.show(title: title, message: nil, cancelTitle: "取消", otherTitle: "确定") { (item) in
    print(item)
}

STGradientButton

Installing

pod 'STKitSwift/STGradientButton'

Example

    private lazy var gradientButton: STGradientButton = {
        let gradientButton = STGradientButton()
        gradientButton.startColor = UIColor.init(red: 255.0/255, green: 76.0/255, blue: 21.0/255, alpha: 1)
        gradientButton.endColor =  UIColor.init(red: 255.0/255, green: 156.0/255, blue: 121.0/255, alpha: 1)
        gradientButton.setTitle("使用layer", for: .normal)
        gradientButton.layer.cornerRadius = 22
        gradientButton.layer.masksToBounds = true
        view.addSubview(gradientButton)
        return gradientButton
    }()

STGradientView

Installing and Usage

pod 'STKitSwift/STGradientView'

STHUD

Installing and Usage

pod 'STKitSwift/STHUD'

Example

STHUD.show("Hello World")

STMoveButton

Installing and Usage

pod 'STKitSwift/STMoveButton'

Example

private lazy var moveButton: STMoveButton = {
    let moveButton = STMoveButton()
    moveButton.setImage(UIImage.init(named: "icon_wheel"), for: .normal)
    view.addSubview(moveButton)
    return moveButton
    }()

STPhoneTextField

Installing and Usage

pod 'STKitSwift/STPhoneTextField'

Example

let tf3 = STPhoneTextField()
tf3.config.defaultConfig = STPhoneFormat.init(defaultPhoneFormat: "(####) #######")
tf3.prefix = "+86 "
tf3.placeholder = "format:+86 (####) #######"

STProgressView

Installing and Usage

pod 'STKitSwift/STProgressView'

STSegmentedControl

Installing and Usage

pod 'STKitSwift/STSegmentedControl'

Example

let titles = ["关注", "推荐", "国际", "娱乐", "视频", "科技", "军事", "设计", "体育", "读书"]
let segmentedControl = STSegmentedControl()
segmentedControl.titles = titles
segmentedControl.selectBlock = { (item) in
            print(item)
        }
segmentedControl.currentIndex = 3

STTimerButton

Installing and Usage

pod 'STKitSwift/STTimerButton'

Example

buttonCode.startCountDown(duration: 10) { (button, type, time)  in
print("button = \(button) type = \(type) time = \(time)")
    switch type {
    case .start:
        button.isEnabled = false
        button.setTitle(time.description + "s", for: .normal)
        button.backgroundColor = .gray
    case .ongoing:
        button.isEnabled = false
        button.setTitle(time.description + "s", for: .normal)
        button.backgroundColor = .gray
    case .finish:
        button.isEnabled = true
        button.setTitle("重新发送", for: .normal)
        button.backgroundColor = .red
    default:
        button.isEnabled = true
    }
}

STAreaPickerView

Installing and Usage

pod 'STKitSwift/STAreaPickerView'

Example

STAreaPickerView.show(inView: view) { [weak self](provinceName, provinceCode, cityName, cityCode, areaName, areaCode) in

}

STDatePickerView

Installing and Usage

pod 'STKitSwift/STDatePickerView'

Example

STDatePickerView.show(minimumDateStr: "1900-01-01",
                              maximumDateStr: "3000-01-01",
                              currentDateStr: "2019-06-04")
        { (year, month, day)in
            print("year = \(year)  month = \(month)  day = \(day)")
        }
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].