LGPlaceholderView
View covers everything inside view controller, and shows some alert text, progress bar or other view, when you need to hide content
Install / Use
/learn @Friend-LGA/LGPlaceholderViewREADME
LGPlaceholderView
View covers everything inside view controller, and shows some alert text, progress bar or other view, when you need to hide content. For example when you push view controller and want to load some data from server, you can prepare everything while LGPlaceholderView will show activity indicator for user.
Preview
<img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGPlaceholderView/Preview.gif" width="218"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGPlaceholderView/1.png" width="218"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGPlaceholderView/2.png" width="218"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGPlaceholderView/3.png" width="218"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGPlaceholderView/4.png" width="218"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGPlaceholderView/5.png" width="218"/> <img src="https://raw.githubusercontent.com/Friend-LGA/ReadmeFiles/master/LGPlaceholderView/6.png" width="218"/>Installation
With source code
Download repository, then add LGPlaceholderView directory to your project.
With CocoaPods
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. To install with cocoaPods, follow the "Get Started" section on CocoaPods.
Podfile
platform :ios, '6.0'
pod 'LGPlaceholderView', '~> 1.0.0'
With Carthage
Carthage is a lightweight dependency manager for Swift and Objective-C. It leverages CocoaTouch modules and is less invasive than CocoaPods. To install with carthage, follow the instruction on Carthage.
Cartfile
github "Friend-LGA/LGPlaceholderView" ~> 1.0.0
Usage
In the source files where you need to use the library, import the header file:
#import "LGPlaceholderView.h"
Initialization
You have several methods for initialization:
- (instancetype)initWithView:(UIView *)view; // parent view, that content you need to hide
More init methods you can find in LGPlaceholderView.h
Notifications
Here is also some notifications, that you can add to NSNotificationsCenter:
kLGPlaceholderViewWillShowNotification;
kLGPlaceholderViewWillDismissNotification;
kLGPlaceholderViewDidShowNotification;
kLGPlaceholderViewDidDismissNotification;
More
For more details try Xcode Demo project and see LGPlaceholderView.h
License
LGPlaceholderView is released under the MIT license. See LICENSE for details.
Related Skills
qqbot-channel
347.0kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.1k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
347.0kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
Design
Campus Second-Hand Trading Platform \- General Design Document (v5.0 \- React Architecture \- Complete Final Version)1\. System Overall Design 1.1. Project Overview This project aims t
