Giter VIP home page Giter VIP logo

swift-macos's Introduction

๐ŸŽ ๐Ÿ–ฅ Swift Programming for macOS

There are plenty of books, videos, and online resources for developing iOS apps. Despite the fact that iPhone and iPad apps require a Mac for code development, there is very little information about actually creating native Mac applications. The examples in this repository and the accompanying website demonstrate various aspects of Mac app development using the latest versions of Swift and SwiftUI. Hopefully the examples and website will provide a useful resource for Mac developers. The website is available at https://gavinw.me/swift-macos.

Examples

Example code is located in the swift-scripts, xcode-playgrounds, and xcode-projects folders.

Website

The website is available at https://gavinw.me/swift-macos. It is generated with the genja tool using the content, docs, and templates folders along with the config.json file. Also, the image files are located in the docs/img folder. The website is hosted with GitHub Pages from the docs folder.

Contributing

Submit a Pull Request if you would like to contribute to this project. Questions and other comments can be submitted on the Issues page. If you submit an example Xcode project, make sure Team is set to None in the Signing & Capabilities section in the project settings.

Support

Support this project by using the โค๏ธ Sponsor button at the top of this page. Thank you ๐Ÿ˜„.

License

Code in this repository is available under the MIT License - see the LICENSE file for more information.

swift-macos's People

Contributors

dependabot[bot] avatar kicsipixel avatar wigging avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

swift-macos's Issues

Suggestion: Showing macOS version availability

New SwiftUI features are coming, some of them are supported only on the latest macOS .e.g. Table. It might be worth considering to introduce some kind of "flag/badge" which would shows where that feature is available.

Suggestion: Table

Simple (Table)[https://developer.apple.com/documentation/swiftui/table] demo, which is similar to NSTableView maybe the functionalities are less but better than using List.

Expanding to interface builder samples

Congrats, this side is great and exactly what I am looking for, working with Swift and macOS!

Suggestion: I try to find samples to understand the 'rubber band' functionality used in conjunction with e.g.: @IBAction func related to radio buttons.

Well, it is a personal challenge I am having right now: Four text fields should be evaluated by its content. In order to calculate mathematical results, the button should be deactivated, till all inputs are valid or at least meaningful.
If all four text fields are filled accordingly, the -button should become activated.

Maybe you could provide me a hint where to start and I would try to submit this course with a pull request?

Happy hackin'
LoetLuemmel!

Customize Sidebar Default Width

The Finder sidebar has a default width that hugs its content (180 pt on my machine) and a minimum width of ~ 112 pt. Is it possible to implement Finder sidebar behavior with SwiftUI? (Custom default/initial width, snap to default width)

Or more simply, customizing the initial width to something other than 140 pt would be a great start too!

Add a gitignore file

Need to add a .gitignore file to the repository instead of assuming people have one installed on their system. This will prevent contributors from submitting files that don't need to be in version control.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.