Commit Graph

13 Commits

Author SHA1 Message Date
luigi-rosso
27de5abf4b Ios out of band
few bits to sort out
- [x] make our mix of simulator/emulator consistent, settling on emulator
- [x] passing the factory in works great for just in time asset decoding, but its not amazing when you want to decode ahead of time.
- [x] couple of places left to pass this function signature through. (Question) is there a neater way to get this done, feels a bit like we are going back to parameter explosion a bit?
- [x] should do a few examples, i think the complexity grows quite a bit in this one as you add caching, or callbacks
- [x] should get the cached images/fonts to draw on init as well, either warming up cache, or jitting
- [x] examples loading assets from the bundle (also there seem to be actual asset things too? should we use those?!)
- [x] add test
- [x] re-add "preview" project & rev the preview project once this has been deployed. (do this after new ios deploy)
- [x] fix up race condition (see comment)

https://github.com/rive-app/rive/assets/1216025/2c14330f-e8a4-481b-bc27-4807cabe3b82

(simple example, both swift ui and standard)

![CleanShot 2023-11-20 at 16 54 59](https://github.com/rive-app/rive/assets/1216025/a71e207c-30ad-44dd-9e4b-ad7431b22186)

Diffs=
fabb7f97f Ios out of band (#6232)

Co-authored-by: Gordon Hayes <pggordonhayes@gmail.com>
Co-authored-by: Maxwell Talbot <talbot.maxwell@gmail.com>
2023-12-05 21:23:08 +00:00
zplata
064fd46b1c feature: Add Rive Event bindings to iOS runtime
Adds event bindings for iOS/macOS

**Caveat:** tl;dr We may have to explicitly make app owners open URLs for `OpenUrlEvent`, rather than doing it implicitly

Recently, there was a [request for a specific change](https://github.com/rive-app/rive-ios/pull/267) to mark `RiveRuntime` package as using application-extension-safe in terms of API usge. This allows RiveRuntime to be used in places other than apps in the Apple ecosystem, which they needed, so that Apple doesn't flag their apps negatively in App Store submissions. Because we mark this setting in build settings for our package, this means we can't use a specific API to access `UIApplication`, which is needed to open URLs from our side (i.e. `UIApplication.shared.open(url)`), thus not allowing us to _directly_ open URLs on `OpenUrlEvent`. Couldn't find a way around this unfortunately, so the onus on opening the URL will be on the consumer when they listen for this event.

Diffs=
b47ff1523 feature: Add Rive Event bindings to iOS runtime (#5899)

Co-authored-by: Zachary Plata <plata.zach@gmail.com>
2023-09-13 18:07:11 +00:00
csmartdalton
b1f11bf828 Integrate the Rive renderer into iOS
Diffs=
afc961233 Integrate the Rive renderer into iOS (#5952)

Co-authored-by: Chris Dalton <99840794+csmartdalton@users.noreply.github.com>
Co-authored-by: Luigi Rosso <luigi.rosso@gmail.com>
2023-09-08 18:30:17 +00:00
zplata
7fd8df317e Add text binding ios
Redoing the PR from: https://github.com/rive-app/rive/pull/5683

Wasn't recognizing latest commits for some reason, Github was having some PR status issues yesterday so might've been from that

Diffs=
fe466871e Add text binding ios (#5687)

Co-authored-by: Zachary Plata <plata.zach@gmail.com>
2023-07-31 14:07:41 +00:00
csmartdalton
627ecee71c Update ObjC formatting to look more similar to the C++
Also update the auto formatter to run on *.m and *.mm files, and effectively ban breaking on return types entirely, as I think this is ugly.

Diffs=
c7d125c7d Update ObjC formatting to look more similar to the C++
2023-02-15 17:24:57 +00:00
csmartdalton
2ab34178da clang-format tweaks
* Always align function arguments at the opening paren if they have to
  break (never just indented 4 spaces)

* Only break after a function's return type if there's no other way to
  make it fit in 100 columns

* Allow one-liner case labels in a switch statement

* Delete packages/coop/.clang-format

* Reformat the world

Diffs=
7d242ebc8 clang-format tweaks
2022-08-19 20:30:51 +00:00
Zachary Duncan
5c44226a0c Refactored enums to look more swifty and shortened 2022-07-06 17:39:35 -04:00
Michael Reed
ff4bccfd6b Revert "Revert "Only exposes instances""
This reverts commit a6026b7a56.
2022-05-01 17:01:49 -04:00
Michael Reed
a6026b7a56 Revert "Only exposes instances"
This reverts commit 3b48a9abe0.
2022-04-30 14:34:31 -04:00
Mike Reed
3b48a9abe0 Only exposes instances 2022-04-29 16:01:04 -04:00
Arthur Vivian
0daa4fe2f3 Add NSError errors in place of NSException 2021-06-24 20:14:11 +01:00
Maxwell Talbot
ab32aebd23 updated examples with fit/alignment values 2021-05-14 14:58:58 +01:00
Maxwell Talbot
b9b17a531a moved everything around to allow for smaller files 2021-05-14 14:48:00 +01:00