Javis OS
Javis OS는 기업가를 돕는 에이전시 AI로, 업무를 지원하고 함께 성장합니다
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Aepryus Software's iOS Library
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Acheron is a collection of utilties for developing iOS apps.
You can use SPM, to integrate Acheron into your project. You can add the following to your dependencies:
.package(url: "https://github.com/aepryus/Acheron.git", from: "1.1.0"),
Or from Xcode go to File/Add Packages and enter the URL: https://github.com/aepryus/Acheron.git.
A lightweight threadsafe no SQL ORM.
A collection of lightweight extensions and convenience methods for laying out iOS screens programatically. It is particularly useful in making multiple screen sizes look the same.
Pen is a set of tools that eases working with fonts within UIKit. Mainly, it is an immutable object, 'Pen' that encaspulates all of the font "attributes"; making them easy to define and access. Slightly adjusted new Pens can be created via the clone() method. It also includes a number of extensions to Apple classes that allows Pens to be used directly with them.
Usage:
let greenPen: Pen = Pen(font: UIFont(name: "ChicagoFLF", size: 19)!, color: UIColor.green.tint(0.7), alignment: .right)
let whitePen: Pen = greenPen.clone(color: .white)
let attString = NSMutableAttributedString()
attString.append("This is GREEN", pen: greenPen)
attString.append("This is WHITE", pen: whitePen)
let label = UILabel()
label.pen = greenPen
NSString("Hello, White Pen").draw(at: .zero, pen: whitePen)
NSString("Hello, Green Pen").draw(at: .zero, withAttributes: greenPen.attributes)
RGB is a set of tools that make it easy to get tints, shades and tones of a color or blend two entirely different colors. It includes the RGB class which converts color into a vector that can then be manipulated mathematically. It also includes an extension of UIColor that enables these manipulations to be made directly to UIColor itself.
Usage:
let lightBlue = UIColor.blue.tint(0.5)
let greyGreen = UIColor.green.tone(0.5)
let transparentPink = UIColor.red.tint(0.5).alpha(0.5)
let blueRGB = RGB(uiColor: .blue)
let redRGB = RGB(uiColor: .red)
let purpleRGB = (blueRGB + redRGB) * 0.5
let purpleRGB2 = blueRGB.blend(rgb: redRGB, percent: 0.5)
Classes and delegates for creating expandable table views.
A view making the display of tabular data easy.
AepImage is an extremely light weight asynchoronous image loading and caching tool that stitches into UIImageView, but can also be used from static methods on UIImage directly. The tool ensures UIImageViews located on UITableViews are handled correctly. It does not include a disk cache.
Usage:
imageView.loadImage(url: "https://aepryus.com/resources/aexels01s.png")
imageView.loadImage(url: "https://aepryus.com/resources/Force3.jpg", placeholder: tempImage) {
print("Image Loaded")
}
UIImage.loadImage(url: "https://aepryus.com/resources/tnEvolizer1.jpg") { (image: UIImage) in
print("already loaded")
} willLoad: {
print("will load")
} finishedLoading: { (image: UIImage) in
print("finished loading")
}
Pond and Pebbles is an asynchronous control flow system that greatly helps detangle complex asynchronous tasks like app initialization. Through the BackgroundPond it also makes finishing up asynchronous tasks after your app is closed much easier.
Usage:
class BootPond: Pond {
lazy var needNotMigrate: Pebble = {/*...*/}()
lazy var migrate: Pebble = {/*...*/}
lazy var ping: Pebble = {
pebble(name: "Ping") { (complete: @escaping (Bool) -> ()) in
Pequod.ping { complete(true) }
failure: { complete(false) }
}
}()
lazy var loadOTID: Pebble = {
pebble(name: "Load OTID") { (complete: @escaping (Bool) -> ()) in
complete(Pequod.loadOTID() && Pequod.loadExpired())
}
}()
lazy var loadUser: Pebble = {
pebble(name: "Load User") { (complete: (Bool) -> ()) in
complete(Pequod.loadUser())
}
}()
lazy var loadToken: Pebble = {
pebble(name: "Load Token") { (complete: (Bool) -> ()) in
complete(Pequod.loadToken())
}
}()
lazy var isLocallySubscribed: Pebble = {/*...*/}()
lazy var isRemotelySubscribed: Pebble = {/*...*/}()
lazy var receiptValidation: Pebble = {/*...*/}()
lazy var userLogin: Pebble = {/*...*/}()
lazy var otidLogin: Pebble = {/*...*/}()
lazy var showOffline: Pebble = {/*...*/}()
lazy var showSubscribe: Pebble = {/*...*/}()
lazy var showSignUp: Pebble = {/*...*/}()
lazy var queryCloud: Pebble = {/*...*/}()
lazy var startOovium: Pebble = {/*...*/}()
lazy var invalid: Pebble = {/*...*/}()
// Init ============================================================================================
override init() {
super.init()
loadOTID.ready = { true }
loadToken.ready = { true }
loadUser.ready = { true }
needNotMigrate.ready = { true }
ping.ready = { true }
queryCloud.ready = { true }
migrate.ready = { self.needNotMigrate.failed }
isLocallySubscribed.ready = { self.loadToken.succeeded }
isRemotelySubscribed.ready = {
self.ping.succeeded
&& self.isLocallySubscribed.failed
}
userLogin.ready = {
self.ping.succeeded
&& self.loadToken.failed
&& self.loadUser.succeeded
}
receiptValidation.ready = {
self.ping.succeeded
&& self.loadToken.failed
&& self.loadOTID.failed
&& (self.loadUser.failed || self.userLogin.failed)
}
otidLogin.ready = {
self.ping.succeeded
&& self.loadToken.failed
&& (self.loadOTID.succeeded || self.receiptValidation.succeeded)
&& (self.loadUser.failed || self.userLogin.failed)
}
showOffline.ready = {
self.ping.failed
&& self.loadToken.failed
}
showSubscribe.ready = {
self.ping.succeeded
&& (self.receiptValidation.failed || self.isRemotelySubscribed.failed)
}
showSignUp.ready = {
self.ping.succeeded
&& self.loadToken.succeeded
&& self.loadOTID.succeeded
&& (self.isLocallySubscribed.succeeded || self.isRemotelySubscribed.succeeded)
&& self.loadUser.failed
}
startOovium.ready = {
self.loadToken.succeeded
&& self.loadOTID.succeeded
&& (self.loadUser.succeeded || self.ping.failed)
&& (self.isLocallySubscribed.succeeded || self.isRemotelySubscribed.succeeded)
&& (self.needNotMigrate.succeeded || self.migrate.succeeded)
&& self.queryCloud.succeeded
}
invalid.ready = {
self.loadToken.succeeded
&& self.loadOTID.failed
}
}
}
class ExitPond: BackgroundPond {
lazy var saveAether: Pebble = {
pebble(name: "Save Aether") { (complete: @escaping (Bool) -> ()) in
Oovium.aetherView.saveAether { (success: Bool) in
complete(success)
}
}
}()
init() {
super.init { print("ExitPond timed out without completing.") }
saveAether.ready = { true }
}
}
class OoviumDelegate: UIResponder, UIApplicationDelegate {
let bootPond: BootPond = BootPond()
let exitPond: ExitPond = ExitPond()
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
bootPond.start()
return true
}
func applicationWillResignActive(_ application: UIApplication) {
exitPond.start()
}
}
It also includes mechanisms for writing tests for various asynchronous pathways:
XCTAssert(pond.test(shouldSucceed: [
pond.needNotMigrate,
pond.ping,
pond.queryCloud,
pond.showSubscribe,
], shouldFail: [
pond.loadOTID,
pond.loadUser,
pond.loadToken,
pond.receiptValidation,
]))
Usage:
let button: UIButton = UIButton()
button.addAction {
print("Hello, Acheron")
}