You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loafjet is a light weight Toast(Loaf) generator framework which allows the user to add customised Toasts to their projects. Loafjet comes with various types of Toast Animations as well as Toast Positions. It can be used to add gradient and plain toasts. Loafjet comes with extra features like Popup Card and Loading Indicator which can be customised according to your needs.
Our Simulation App is available on App Store, Go check it out
Calling LoafWheel Dismissal is required when LoafWheel is used for Dynamic Processing❕.
LoafWheel Dismissal 📕
Loaf.dismissWheel(loafWheelView:UIView)
STUDIO 💻
Our Simulation App is available on App Store, Go check it out!
There app consists of a live Studio made for developers to customise their Loaf in live. The live preview allows to select the best customisation possible.
The app also have various prebuilt Loafjets, do check it out to get a better idea😃.
Now you can experiment in the Studio and design the best suitable loafjet for your projects.
Do read the documentation till the end to get a reward 🎁 from Loafjet organisation.
Parameters 🎚
Parameter
Definition
message
Message to show on Loaf
position
Position of Loaf
loafWidth
Loaf Width
loafHeight
Loaf Height
cornerRadius
CornerRadius of Loaf
fontStyle
Font Style of Message
fontSize
Font size of Message
bgColor
Background Color of Loaf
Parameter
Definition
alphaValue
Opacity value for Loaf's background
loafImage
Image on Loaf
duration
Loaf Duration
completion
Closure to add actions to be performed
animationDirection
Loaf Animation type
blurEffect
Blur effect type
wheelStyle
Wheel Style
loafWheelView
View on which LoafWheel is running
loafjetView
View on which Loaf is presented
Combination of Position and Animations 📙
Customise your Loaf according to the below given chart 🎛.
Position
Animation
Top
Top
Centre
Left & Right
Bottom
Bottom
The above mentioned are the possible combination of position & animation which are possible.
The remaining combinations are something which are not correct with UX prospect, so we have ignored them😃
Snapshots 📸
Plain(Top)
Plain(Bottom)
Plain(Centre)
Plain(Centre)
Gradient(Top)
Gradient(Bottom)
Gradient(Centre)
Gradient(Centre)
Above shown are few possible ways, you can customise according to your need (Customisation shown below).
Customisation 🛠
Loafjet offers you a wide variety of customisation, select a style and apply your creativity on it.
This are some possible ways, "How Loafjet can be used ?".
Snapshots 📷
Do Not Disturb
Information
Warning
Success
Error
Device Detection
Loafjet +
Additional features
Dash Board,Gradient Loafwheel & Popup card are the additional customisation which you get in Loafjet🥳.
Popup Card
Loaf Wheel
Dash Board
These are some possible ways of customisation 💡
Loafjet Proprietary
Alert Style
Successful Style
Dark \ Light Mode Support 🔦
Dark Mode
Light Mode
Dash Board is available for iOS 14 and above.
The above shown are some possible ways, How you can customise?, do try making your own and post it in the issue section and get featured⚡️.
What are you waiting for, write pod Loafjet and pod install it .
Done?, Now enjoy using Loafjet🚀.
Portrait + Landscape Support 🔄
Loafjet is made with Landscape + Portrait support* 🔓.
Have a look on your favourite Loafjet supports 📇
Loafjet
Portrait
Landscape
Plain Loaf
✅
✅
Gradient Loaf
✅
✅
Popup Card
✅
✅
Dash Board
✅
❌
Loaf Wheel
✅
✅
Other than Dash board all the Loafjets support every type of orientation 🎚.
Dash Board Landscape support will be added soon, stay tuned 💻
Video Demo 🎥
Top(Top)
Bottom(Bottom)
Centre(Right)
Centre(Left)
These are some possible Position X Animation combination, Loafjet supports various other combinations too.
Instructions ⚠️
At a time you can only use one Loaf(Simultaneous use is allowed).
Customise Loaf Position and Anmation according to the above given table.
Use .greatestFiniteMagnitude in duration to get an infinte loader.
To dismiss the loader use Loaf.dismissWheel(LoafWheelView:UIView).
For certain colors and blur effect particular iOS version is required, So to solve it use the below code (By default Xcode will show you both the fix).
// iOS versions will varry
if #available(iOS 10.0,*){.
// write the code to run
}else{print("Error Message")}
Or
// iOS versions will varry
@available(iOS 10.0,*)
Test Run of few Loafjets are given, have a look on it (Running all Loafjets at a time may lead to irregular functioning!).
Note 🔴
Currently 'Loafjet' dont support SF Symbols, if you need it just raise an issue and I will try to add it ⚓️.
The Loafimage you add must be present in the Images.xcassets file .
Loafimages which you add must be of A x A Size(Else images may get cutout!).
In the Test Run make sure you don't run all the Loafjets at a time, wait for one whole Loafjet to complete its task, then go for next.
All the Loafjets are created with default parameters too, so notice carefully which one you are using (Functions with and without default parameters are shown ⬆️).
You can use two or more different Loafjet type at a time, but you can't use two or more Loafjet of same type at a time.
License ⚖️
Loafjet is available under the MIT license. See the LICENSE file for more info.
How to Contribute 🖋
Run the app - Steps are mentioned above.
If you face issues in any step open a new issue.
To fix issues: Fork this repository, make your changes and make a Pull Request.