{"id":13462673,"url":"https://github.com/kingsic/SGPagingView","last_synced_at":"2025-03-25T05:32:11.199Z","repository":{"id":39173383,"uuid":"70103692","full_name":"kingsic/SGPagingView","owner":"kingsic","description":"A powerful and easy to use segment view 【QQ、淘宝、微博、腾讯、网易新闻、今日头条等标题滚动视图】","archived":false,"fork":false,"pushed_at":"2021-12-17T17:16:46.000Z","size":23875,"stargazers_count":1582,"open_issues_count":7,"forks_count":281,"subscribers_count":29,"default_branch":"master","last_synced_at":"2025-03-17T07:37:21.917Z","etag":null,"topics":["pagingview","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kingsic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-05T22:15:41.000Z","updated_at":"2025-01-19T11:13:55.000Z","dependencies_parsed_at":"2022-08-01T07:59:13.252Z","dependency_job_id":null,"html_url":"https://github.com/kingsic/SGPagingView","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingsic%2FSGPagingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingsic%2FSGPagingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingsic%2FSGPagingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kingsic%2FSGPagingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kingsic","download_url":"https://codeload.github.com/kingsic/SGPagingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244734097,"owners_count":20501014,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pagingview","swift"],"created_at":"2024-07-31T13:00:18.644Z","updated_at":"2025-03-25T05:32:11.157Z","avatar_url":"https://github.com/kingsic.png","language":"Swift","funding_links":[],"categories":["UI Components","Objective-C  Stars 1000以内排名整理","Swift","uiscrollview nested uiscrollview"],"sub_categories":[],"readme":"# SGPagingView\n\n\n## 前言\n* QQ群：825339547\n* 2.0.0 版本起，升级为 Swift 编程语言\n* [Objc 版本说明](https://github.com/kingsic/SGPagingView/blob/master/READMEOBJC.md)\n\n\n## 结构图\n![](https://github.com/kingsic/SGPagingView/blob/master/Pictures/SGPagingView.png)\n\n\n## 效果图\n![](https://github.com/kingsic/Kar98k/blob/master/SGPagingView/SGPagingView.gif)\n\n\n## Installation\n* CocoaPods 导入 pod 'SGPagingView', '~\u003e 2.1.0'\n\n\n## 代码介绍\n* 初始化方法\n```\n// 配置类\nlet configure = SGPagingTitleViewConfigure()\n\n// 标题视图\nlet pagingTitleView = SGPagingTitleView(frame: frame, titles: titles, configure: configure)\npagingTitleView.delegate = self\nview.addSubview(pagingTitleView)\n\n// 内容视图\nlet pagingContentView = SGPagingContentScrollView(frame: frame, parentVC: self, childVCs: childVCs)\npagingContentView.delegate = self\nview.addSubview(pagingContentView)\n```\n\n*  SGPagingTitleView 代理方法\n```\nfunc pagingTitleView(titleView: SGPagingTitleView, index: Int) {\n    pagingContentView.setPagingContentView(index: index)\n}\n```\n\n*  SGPagingContentView 代理方法\n```\nfunc pagingContentView(contentView: SGPagingContentView, progress: CGFloat, currentIndex: Int, targetIndex: Int) {\n    pagingTitleView.setPagingTitleView(progress: progress, currentIndex: currentIndex, targetIndex: targetIndex)\n}\n```\n\n\n## Requirements\n* iOS 10.0 +\n* Swift 5.0 +\n\n\n## Concluding remarks\n* 如有问题 [issues](https://github.com/kingsic/SGPagingView/issues)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingsic%2FSGPagingView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkingsic%2FSGPagingView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkingsic%2FSGPagingView/lists"}