Thnx 0.0.1

Thnx 0.0.1

测试已测试
语言语言 SwiftSwift
许可协议 BSD
发布最新发布2016年11月
SwiftSwift 版本3.0
SPM支持 SPM

Adam Dahan 维护。



Thnx 0.0.1

  • 作者:
  • adamdahan

Thnx


欢迎使用 Thnx

Thnx 是一个可完全自定义的开源代码归因框架,用于在项目中使用的代码为背后的团队致谢。



最新示例项目


功能

  • [x] 支持 ALL iOS Github 仓库,这些仓库都有许可证
  • [x] ThnxViewController
  • [x] 动态文本大小
  • [x] 可定制
  • [x] 即插即用
  • [x] 支持方向更改
  • [x] Thnx
  • [x] 在您自己的自定义视图中使用许可证数据
  • [x] Swift 3
  • [x] iOS 10


即将推出

  • [x] 支持 macOS 仓库
  • [x] 超级大功能
  • [x] 在 ThnxViewController 中可以自定义错误信息(如果无法获取仓库许可证,没有网络故障)


用法

如果您希望使用默认的 ThnxViewController

import UIKit
import Thnx

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?

    lazy var thnxViewController: ThnxViewController = {
        return ThnxViewController(urls: [Url.Graph, Url.Algorithm, Url.Material])
    }()

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        window = UIWindow(frame: UIScreen.main.bounds)
        window?.rootViewController = UINavigationController(rootViewController: thnxViewController)
        window?.makeKeyAndVisible()
        return true
    }
}