• This repository has been archived on 26/Dec/2018
  • Stars
    star
    148
  • Rank 242,580 (Top 5 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 9 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

iOS app to generate series of PNG images, to be used in WatchKit apps
Error in user YAML: (<unknown>): did not find expected comment or line break while scanning a block scalar at line 1 column 1
---
> Note: this is abandoned. I don't recommend to use it in new projects.
---

WatchRingGenerator 1.1

iOS app to generate series of PNG images, to be used in WatchKit apps. It’s primarily made to be used in iOS Simulator, so you can easily get to the pics. I recommend to use iPad Air simulator.

It looks like this (from ver 1.0):

Ver 1.0

You can set your color hex codes and tap Return key to have them instantly applied. Same with other text fields – change value and tap Return to apply it. The color boxes are actually buttons and I first wanted to add color picker there, but gave up for the lack of time. Progress can go from 0.0 to 1.0 and it is there simply as preview.

This is the format of the file names: [email protected]. It generates 100 pics for each ring.

  • RINGID is either outer or innner
  • RINGSIZE is size in points, by default it's 120 for outer ring and 100 for inner
  • RINGWIDTH is also in points, defines how fat the ring is (default is 9)

Images are generated in img folder inside app's Documents directory.

Ver 1.1

Added option to generate .xcassets file, automatically for both 38mm and 42mm. The difference between the pics is 20pt, so it's easy to generate both sizes automatically.

How to use

  • Set the watch size to 38mm (it's the default, but just in case you tried 42mm)
  • Setup your rings anyway you want (keep in mind that max size is 134pt)
  • Tap Generate .xcassets button and look for the app's Documents folder in iOS Simulator

Now just add Ring.xcassets into Watch app target (not the extension) and use it like this:

[self.progressImage setImageNamed:@"inner-124-12-"];

Have fun creating your images. Code is a bit convoluted, but it does the job and I hope you can find your way around in case you want to change the naming.

More Repositories

1

CardPresentationController

Custom UIPresentationController which mimics the behavior of Apple Music UI
Swift
796
star
2

Coordinator

Implementation of Coordinators app design pattern.
Swift
715
star
3

Swift-Essentials

A set of essential Swift stuff I use in every single iOS app.
Swift
233
star
4

Alley

Essential `URLSessionDataTask` micro-wrapper for communication with HTTP(S) web services, with built-in automatic request retries.
Swift
147
star
5

LanguageSwitcher

Example how to switch iOS app's language on-the-fly, instantly
Swift
89
star
6

Fields

Good, solid base to build custom forms in iOS apps, using self-sizing compositional layout.
Swift
80
star
7

UICollectionView-NSFetchedResultsController

How to use UICollectionView with NSFetchedResultsController
Objective-C
69
star
8

HTML2PDFRenderer

Take any HTML loaded in WKWebView and make PDF out of it.
Swift
68
star
9

Avenue

Wrapper around URLSession and URLSessionTask to enable seamless integration with Operation / OperationQueue.
Swift
57
star
10

Ambar

Powerful, advanced Core Data Stack implementation, in Swift.
Swift
53
star
11

EFI-ASRock-X570-ITX-TB3

OpenCore EFI for build using ASRock X570 ITX board, Ryzen 9 5900X
45
star
12

RTFlyoutMenu

Fly-out (drop-down) menu component for iPad
Objective-C
41
star
13

EFI-B550I-Aorus

EFI for Gigabyte B550I Aorus Pro AX with 5900X and RX 6900 XT and with custom-replaced Wifi/Bt card.
23
star
14

EFI-ASRock-Z490-ITX-TB3

EFI for OpenCore bootloader, for Intel-based Hackintosh comparable to iMac (2020)
18
star
15

Coordinator-iOS13-starter-app

Template for iOS 13 app, with UIScenes and Coordinator pattern
Swift
16
star
16

RTCleanNavigationBar

UINavigationBar subclass that removes the shadow image while retaining translucency effect in iOS 7 and up
Objective-C
14
star
17

RTWalkthrough

An Objective-C clone of github/ariok/BWWalkthrough (a bit improved in the process)
Objective-C
12
star
18

Spotifier

Swift
12
star
19

NSFileManager-Utilities

Objective-C
10
star
20

UITableView-NSFetchedResultsController

UITV and NSFRC, sitting in a tree, forever happy
Objective-C
6
star
21

ryzentosh

Adventures in building hackintosh with OpenCore, running AMD Ryzen CPUs
5
star
22

RTFlowLayout

Like UICollectionViewFlowLayout, but with additional supplementary views.
Objective-C
5
star
23

ComposableUI

An example of the power of container controllers to UI driven by very complex functionality
Objective-C
4
star
24

RTCoreDataStack

Core Data stack for Objective-C apps
Objective-C
4
star
25

RTGraphLayout

UICollectionViewFlowLayout subclass acting like zoomable bar chart
Objective-C
3
star
26

UILabel-FontName

UIAppearance for UILabel font name
Objective-C
2
star
27

FirebaseTokenReporter

Utility to convert APNS token into FCM token
Swift
2
star
28

AsyncOperations

Jared Sinclair built this library a while back. Not sure why it's gone from his account, but hosting a copy until further notice.
Swift
2
star
29

RTTabBarController

Highly customizable and feature-rich replacement for UITabBarController
Objective-C
1
star
30

RTFormKit

Table View and self-sizing auto-layout based forms
Objective-C
1
star
31

InAppSettingsKit

This iPhone framework allows settings to be in-app in addition to being in the Settings app
Objective-C
1
star
32

EFI-Asus-ROG-Strix-B550-I

1
star
33

RTCollectionViewFlowLayout

Subclass of UICollectionViewFlowLayout, with two additional supplementary views
Objective-C
1
star