<% example_html = ERB.new(example).result %> <%= pb_rails("card", props: { classname: "pb--doc", padding: "none", dark: dark }) do %> <% unless (type == "swift") %>
<%= pb_rails("caption", props: { text: example_title, dark: dark }) %>
<%= example %>
<% else %>
"> <%= pb_rails("caption", props: { text: example_title, dark: dark, margin_top: "md" }) %> <%= render_markdown(description) %>
<% end %> <% if show_code && type != "swift" %>
"> <%= render_markdown(description) %>
<%= pb_rails("popover", props: { trigger_element_id: "copy-button-#{example_key}", tooltip_id: "tooltip-#{example_key}", offset: true, position: "bottom" }) do %> Code Copied <% end %>
<% end %> <% end %>