leoru / swiftloader Goto Github PK
View Code? Open in Web Editor NEWA simple and beautiful activity indicator written in Swift
License: MIT License
A simple and beautiful activity indicator written in Swift
License: MIT License
Why I can't set my custom color?
config.backgroundColor = UIColor(red: 51, green: 181, blue: 228, alpha: 1.0)
it looks like you can have just some colors "build in"
To reproduce:
1.) Create new xocde project (Single View)
2.) add the following podfile
platform :ios, "8.0"
use_frameworks!
pod 'SwiftLoader'
pod 'Alamofire'
3.) run pod install
4.) open workspace file
5.) edit ViewController.swift
5a) add import SwiftLoader
5b) add SwiftLoader.show(animated: true)
to viewDidLoad()
6.) compile
7.) get this error: Module 'SwiftLoader' has no member named 'show'
btw. AlamoFire works fine...
Not be able to update cocoapods version? Thanks.
Hello!
I try to used this library. About 2 month ago it work perfect. When i try to use SwiftLoader in my other project, app fails with "fatal error: unexpectedly found nil while unwrapping an Optional value". I see XCode log - this error in your function "show".
About code. I just copy code from your example and paste it in my program.
when you put the app in the background during the loading and re-ports in the foreground app, the SwiftLoader is no longer visible even if the background process is not finished and has not invoked the method hide(). There is a property that indicates the status
Would you consider create a branch for swift 3 ?
by turning the device is not drawn again
I'm using xcode 6.3. Any ideas?
I know this may not necessarily be a bug, but it would be a nice problem to solve.
Scenario: I want to show the loader, and have stuff happen in the background, then use a notification to alert the view when finished, and in that notification handler, I will hide the loader. However, I also, want to use that notification to be called when the view initialize the process, so the notification would be called but the loader never would have been shown.
Question/Issue: Is there a property or something I can check to conditionally hide the loader, only if it has been shown first. Or better yet, I would love to just be able to call hide without checking, and it hides the loader if it was shown, or does nothing if it never was shown.
Its pretty good control to use.
But when the loader is displayed, users shouldn't be able to access the view in which its displayed.
I'm using a configuration for my SwiftLoader. A part of it is:
config.titleTextFont = UIFont (name: "HelveticaNeue-Bold", size: 18.0)!
When i'm using the title hard-coded the font is working as expected
SwiftLoader.show(title: "Updating", animated: true)
When i'm using the title from a variable it seems that the font is ignored
let titleStr = "Updating"
SwiftLoader.show(title: titleStr, animated: true)
It's important to use the title from a variable.
Thanks in advance.
I'm using xcode 6.3. Any ideas?
var config : SwiftLoader.Config = SwiftLoader.Config() <- Issue against this line
config.size = 150
config.spinnerColor = UIColor.redColor()
SwiftLoader.setConfig(config)
I think that some cover view or subview isn't being completely dismissed or removed because I can't access or interact with anything on my view after SwiftLoad.hide(). Sometimes, I'm able to access the view if I'm quick enough... http://stackoverflow.com/questions/31903892/removing-hidden-view-subview-to-unfreeze-main-view
Need a version that works with swift 3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.