A simple URL
extension for opening Bluesky and Mastodon profiles in different client apps, like Ivory
, Radiant
or Skeets
, depending on what the user has installed. If none is installed, this will open the profile in the browser.
- Add the
source/SocialURLHandling
folder to your project - Add the all client apps you want to support to your
LSApplicationQueriesSchemes
array in yourInfo.plist
. You can also copy the array fromsource/Info.plist
- Call:
URL.blueskyProfileURL(for: "PROFILENAME")
- Example:
URL.blueskyProfileURL(for: "strasser.bsky.social")
- Call:
URL.mastodonProfileURL(for: "PROFILENAME")
- Example:
URL.mastodonProfileURL(for: "klemensstrasser@mastodon.social")
- Bluesky
- Skeets
- Mastodon
- Ivory
- Radiant
- Add additional client apps
- Check the format of the profile
social-url-scheme-handling
is available under the Apache-2.0 license.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.