JDBreaksLoading Based on simple UIView and SpriteKit.
  • October 3, 2023

Introduction


JDBreaksLoading Based on simple UIView and SpriteKit.

You can easily start up a little breaking game by one line.

By the way, don’t make user wait too long to play the game~

Thanks for using.

Usage


To add JDBreaksLoading to your view, just give it a frame and addSubview.

let jdbreaksLoading:JDBreaksLoading = JDBreaksLoading(frame: frame)
self.view.addSubview(jdbreaksLoading)

Installation


CocoaPods

 

platform :ios, ‘8.0’
use_frameworks!
pod ‘JDBreaksLoading’

Game Configuration

The default [ Ball, Block , Paddle -> All white, Block count: 3 ]

If you want to chagnge some game setting (color, block…etc).

You will need to set ‘JDBreaksGameConfiguration’

let config:JDBreaksGameConfiguration = JDBreaksGameConfiguration(paddle_color: UIColor.white, ball_color: UIColor.white, block_color: UIColor.white, blocks_count: 3)
let jd:JDBreaksLoading = JDBreaksLoading(frame: frame, configuration: config)
self.view.addSubview(jd)

GitHub


View Github

#activityindicator #breaksloadings #indicator #ios #loadingview #progressview #swift #uiactivityindicatorview
YOU MIGHT ALSO LIKE...
exyte

     

camerakit-ios

CameraKit helps you add reliable camera to your app quickly. Our open source camera platform provides consistent capture results, service ...

HybridCamera

[video width="192" height="416" mp4="https://swiftgit.com/wp-content/uploads/2024/12/68747470733a2f2f7261776769742e636f6d2f7374796c656b69742f696d672f6d61737465722f7669645f6564697465645f325f326d622e676966.mp4"][/video]

TakeASelfie

An iOS framework that uses the front camera, detects your face and takes a selfie. This api opens the front ...

iOS-Depth-Sampler

Code examples of Depth APIs in iOS