Update README.md
Closed this issue ยท 10 comments
Hi, I'd love to continue this even though there has not been much development on this for a while.
Missing a readme and examples it's a bit hard to figure out how even use it. Would love to chat.
I've been using this at work but have not had a chance to write README or a blog post. Right now I've been focusing on contributing to other project but will dedicate some time to improve this. Stay tuned. In the meantime, I will leave a simple note to start using this tonight hopefully...
Ok good to hear, looking forward to it.
Hey, just checking up on this. I'd love to start using this.
I'd leave a simple note here.
gem install fastlane
&fastlane frameit download_frames
(FrameKit uses device frame images generated by frameit)git clone https://github.com/ainame/FrameKit.git
swift run framekit-gen
you'll see help text- Prepare a screenshot taken with iPhone 11 Pro Max simulator
This has a sample layout by default. You can give it try first.
For example, you can run this command to generate a screenshot having framed screenshot with text just like what fastlane frameit generates.
$ swift run framekit-gen --layout iphone_65 \
--locale en_US \
--keyword "Hello World" \
--title "Make a beautiful screenshot!" \
--device-frame "~/.fastlane/frameit/latest/Apple\ iPhone\ 11\ Pro\ Max\ Silver.png"
--screenshots "a screenshot's path taken with iPhone 11 Pro Max simulator"
--output sample.jpg
If you want to change layout, you can modify view file Sources/DefaultFrameKitLayout/AppScreenshotView+DefaultLayout.swift
with SwiftUI or adjust font size in DefaultLayout.swift
.
I don't use the framekit-gen
cli directly but instead, I integrate this with a custom runner script which is private at this moment. As you can see here, CLI is just a wrapper of this.
FrameKit/Sources/FrameKitGenCLI/Command.swift
Lines 58 to 74 in 7aee676
I reckon there's a lot of rooms to improve before officially publishing this so those steps may not work in future.
FrameKit got many updates, and I finally finished the basic README update. I still have to update inline class documents but hope README initially helps people who are interested.
This helped understand what you use the CLI for. I was a bit confused about that. It'd help if you'd suggest in the readme what to use to trigger the CLI - I see you may have it integrated with a test runner invoking it according to the PDF of the talk you gave on this library. thanks
@aehlke What do you refer to by "the CLI"? This project doesn't contain CLI support but is just a chunk of components as a library. You can use it in your SPM-based executable app. Since the layout code is supposed to be written in Swift, you have to compile your layout code within your app right now, which is why this project doesn't provide the CLI frontend part.