fabriziobrancati / bfkit-swift Goto Github PK
View Code? Open in Web Editor NEWBFKit-Swift is a collection of useful classes, structs and extensions to develop Apps faster.
Home Page: https://www.fabriziobrancati.com
License: MIT License
BFKit-Swift is a collection of useful classes, structs and extensions to develop Apps faster.
Home Page: https://www.fabriziobrancati.com
License: MIT License
Hi,
I keep getting allot of warnings about Documentation issues when building my project. They all are about parameters which are not found in the function declaration. Like this one:
/Pods/BFKit/Source/BFKit/BFCryptor.h:118:12: Parameter 'data' not found in the function declaration
/Pods/BFKit/Source/BFKit/BFCryptor.m:29:9: In file included from /Pods/BFKit/Source/BFKit/BFCryptor.m:29:
It's not really a bug but I like my projects warning free :)
Thx!
Documentation was not found, ERROR 404
// MARK: - Functions
/// Get the path for a PathType.
///
/// - Parameter path: Path type.
/// - Returns: Returns the path type String.
public func pathFor(_ path: PathType) -> String? {
var pathString: String?
switch path {
case .mainBundle:
pathString = self.mainBundlePath()
...
}
return pathString
}
self.mainBundlePath() always return nil
I recommend to switch
/// Get Main Bundle path for a filename.
///
/// - Parameter file: Filename
/// - Returns: Returns the path as a String.
public func mainBundlePath(file: String = "") -> String? {
return file.isEmpty ? Bundle.main.bundlePath : Bundle.main.path(forResource: file.deletingPathExtension, ofType: file.pathExtension)
}
I see in BFKit has a UIView extension that used IBDesignable/IBInspectable, But it's can't show in the storyboard。And now I only can use A empty custom view to inherit UIView and in storyboard select the customView。I want now if there any other way to do that
Add check connection status
Add HEX functions in String and NSString extensions
Hello, I'm having problems on my project using this library. I've found this StackOverflow article, is this flag already in the build process for the library?
BUILD_LIBRARY_FOR_DISTRIBUTION
UIScreen.mainScreen().bounds.size is same regardless of the direction of mobile phone before iOS_7_1 ,but it's changed after iOS_7_1
for example:
////////////////////////
func getFixedScreenSize()->CGSize{
let screenSize=UIScreen.mainScreen().bounds.size
if((NSFoundationVersionNumber <= NSFoundationVersionNumber_iOS_7_1)&&UIInterfaceOrientationIsLandscape(UIApplication.sharedApplication().statusBarOrientation)){
return CGSizeMake(screenSize.height, screenSize.width)
}
return screenSize
}
after iOS 10.0,when I call showTouchID
function, it will callback systemCancel
error first。
I set the breakpoint and see the error. when call context.evaluatePolicy
, system will show the touchID alert, and then this function will callback systemCancel
error first. After I auth the touchID, it callback success.
this error can not see in ios 9.0 。
some one know why
Same issue as FabrizioBrancati/BFKit#15
Hi,
I think the function "random()" in the array extension does only return a random element besides the last one.
The function randomInt(range: ClosedRange<Int>) -> Int
which is used, never returns the upperBound of the range, but only the upperBound -1.
e.g.
var myArray = ["One","Two","Three"]
for i in 1...100 {
print(myArray.random())
}
will never print "Three".
for i in 1...100 {
print("\(randomInt(range: 0...1))")
}
will never print "1"
Should be easy to fix :-)
Oliver
.. doesn't seem to work when set to always be visible.. a minor fyi ;)
A most impressive repo!
Add support to Swift 2.0
Type conflicts are found. Color in SwiftUI is an existing class, and BFKit contains the following code
public typealias Color = UIColor
This caused me to compile failure and had to remove the relevant code
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.