Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Segment control like iOS13 photo app

License

NotificationsYou must be signed in to change notification settings

catelina777/FloatingSegmentedControl

Repository files navigation

Provide segment control like iOS13 photo app

This library makes this repository easy to use 👀

[FloatingSwitch]https://github.com/usagimaru/FloatingSwitch

lightdark

Installation 🚀

Carthage

github "catelina777/FloatingSegmentedControl"

Usage

  1. Install a custom view on Interface Builder.
  2. Important: Assign the custom view class asFloatingSegmentedControl likethis.
  3. Set an appropriate layouts. In the default implementation of FloatingSegment, the width follows the intrinsic size.
  4. Set segments withsetSegments (with:) method.
  5. Settarget andaction with addTarget method. Then you can catch control events when users switch segments.

SeeViewController.swift for usage.

About

Segment control like iOS13 photo app

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp